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

What is not null in mysql?

983


How do I free up space in mysql?

885


What is the date format in mysql?

861


What is the difference between heap table and temporary table?

1095


What is the default password for mysql?

875


How large can a mysql table be?

937


How to display top 50 rows?

1040


What are date and time functions in mysql?

999


What are programming functions?

929


How to use sum function in where clause in mysql?

945


What are the advantages/disadvantages of mysql and php?

935


What is the insert?

861


How to Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs.

1004


How many columns can you create for an index?

942


Explain triggers and stored procedures?

902