Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 does php communicate with mysql?

955


What is blob in mysql?

1087


Why do we write stored procedures?

974


What are mysql data types?

1058


What is delimiter in mysql trigger?

995


How to delete a column and add a new column to database

994


What can you do with mysql?

1078


What is tee command in mysql?

1002


Can you tell which of the following where clauses is faster?

993


What is the limitation of mysql?

1012


What sql does mysql use?

998


What is the difference between truncate and delete?

1269


Can u give the example by taking an unnormalized table and make that 1nf and then 25nf, and then 3 nf?

4718


What is data directory in mysql?

1057


how to add a new column to an existing table?

1072