how to display only 4 records from a table based on a
condition
for ex
i have a table called products
in that nid,prodname are fields
i want to display only any 4 records of perticular product
plz tell me

Answer Posted / surya prakash

SELECT prodid, prodname FROM products limit 4;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you rename a database in mysql?

536


What is the difference between mysql_fetch_array() and ysql_fetch_object() ?

511


How to use 'mysql' to run sql statements?

534


What is text?

562


How many ways to get the current time?

512






Who developed mysql?

572


What is the function of mysqldump?

580


What is the query to display top 20 rows?

613


How can you handle the –secure-file-priv in mysql?

515


What is full text indexing in mysql?

479


How can you make a database as your current database?

510


Describe mysql transaction properties.

525


What is mysql routine?

472


What is mvcc in mysql?

536


How do we delete a row in a table?

540