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 to update info already in a table and delete a row(s) from a table.

819


What is the use of count function in mysql?

975


What is truncate command?

874


change column name and make a unique column so we get no dupes.

911


What is delimiter $$?

911


What is the command used to create a database using php and mysql?

1087


Do I need python for mysql?

866


How can you find out the version of the installed mysql?

1237


How will show all records containing the name "sonia" and the phone number '9876543210'

860


What is the difference between mysql and pdo?

895


How do I kill a mysql connection?

853


How do I stop a mysql command?

920


Is mysql port 3306 tcp or udp?

874


How do I switch users in mysql?

907


Can you tell the difference between $message and $$message?

909