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 / anil alpati

No need to adding offset value. since your question says starting from first 4 records

Below is my query -
select nid, prodname from products limit 4

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are mysql timestamps seen to a user?

512


What is a join? Explain the different types of mysql joins.

699


Is blocked because of many connection errors mysql?

441


When to use order by in delete statement?

569


How much does mysql cost?

482






Why do gaps in sequences occur?

517


What are the advantages and disadvantages of using mysql?

510


What is the use of mysql_fetch_array () function in php?

473


How to include numeric values in sql statements?

506


What are the different data types in mysql?

474


How do I download mysql on my laptop?

486


What is the difference between mysql and oracle?

542


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

510


How do I zip a file in mysql?

543


Can mysql and mariadb coexist?

582