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 do I find mysql version in mysql workbench?

943


What is the data type for file in mysql?

988


Which is better mysql or mssql?

931


How to delete the repeated records from a table?

981


What is the return type of mysqli_query?

869


Why use stored procedures in mysql?

992


What is key in mysql?

898


What is an example of a delimiter?

933


How do I run a query in mysql?

949


When to use order by in delete statement?

1026


How do I declare a variable in mysql?

962


How database are managed?

998


How to returns the columns and column information pertaining to the designated table.

1022


How can you retrieve a particular number of records from a table?

940


Why to use char instead of varchar in the database?

1198