Result id from database by mysql? -


i have column in database saved id 1,12,10 , want return 1 id 1 or 12 or 10 when use return wrong data? can do?

you can use limit.

select col table_name limit 1 

this return 1 result.

however claiming returning wrong results, can't if don't post more.

update

as per comment, want use in

select col table_name id in (10, 12, 1) 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -