473,473 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Specify field to start reading from

abdoelmasry
104 New Member
Hi
i need help in mysql
i want to specify field to start reading from
EX:
i have table contain this data:

id username password email country
1 abdo XXXX XXXX XXXXX
2 ahmed XXXX XXXX XXXXX
3 mido XXXX XXXX XXXXX
4 john XXXX XXXX XXXXX
5 samir XXXX XXXX XXXXX
6 mona XXXX XXXX XXXXX


when i use this command:
select * from user
it always read the table from the first value

i wanna specify place to start reading from
EX:
i want read data starting from id 3


i Home I could Explain
Mar 29 '07 #1
4 1398
Motoma
3,237 Recognized Expert Specialist
There are a large number of ways to do this, you can use the LIMIT structure, or specify a WHERE clause.

Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM user LIMIT 3, 5
  2. SELECT * FROM user WHERE id > 2 
  3.  
Hi
i need help in mysql
i want to specify field to start reading from
EX:
i have table contain this data:

id username password email country
1 abdo XXXX XXXX XXXXX
2 ahmed XXXX XXXX XXXXX
3 mido XXXX XXXX XXXXX
4 john XXXX XXXX XXXXX
5 samir XXXX XXXX XXXXX
6 mona XXXX XXXX XXXXX


when i use this command:
select * from user
it always read the table from the first value

i wanna specify place to start reading from
EX:
i want read data starting from id 3


i Home I could Explain
Mar 29 '07 #2
abdoelmasry
104 New Member
THank U Motoma
It Works Perfectly


Abdo Elmasry
Apr 2 '07 #3
Motoma
3,237 Recognized Expert Specialist
THank U Motoma
It Works Perfectly


Abdo Elmasry
Make sure you test your queries. Often when limiting, you want to use an ORDER BY as well, to ensure you get data in the correct order.
Apr 2 '07 #4
abdoelmasry
104 New Member
Ya Im using it with order by
and already have primary key for tables

Thank U
Apr 2 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
11
by: David Messner | last post by:
Ok I know this is simple but the statement eludes me... I have a date field where I want the default value on the data entry form's date field to be the last date entered. I figure I can do this...
3
by: Helgardh | last post by:
I have a linked table (Access 2003) to an Outlook inbox. The body of the e-mail messages are in a memo field. My problem is that I need to "read" the memo and find data on certain lines. The...
4
by: Josh | last post by:
Hi, I am trying to write a function in a module in MS Access 2000 that will change the data type of a field called 'Start' in table 'bo_cpm_CS01ALL'. Here is the code that I have done so far...
15
by: shaqattack1992-newsgroups | last post by:
Hello Everyone, Let me explain my problem. I have included 2 dashes between each pair of records to make it easier to see what goes together. In reality, it is just a long list of results...
4
by: Luis | last post by:
Hi, I can a big problem... because I have a byte data = new byte, and I need to save this to a field on my MySQL database (here I have a BLOB field) but ¿can I save it? because if I put: Insert...
3
by: Rick | last post by:
I have an interesting problem when I run the following code in Netscape (7.02) vs. IE. This page works great in IE and all my controls bring up the validation summary dialog box if the required...
2
by: RZ15 | last post by:
Hi, I have a query that is pulling info from 7 tables (all necessary). The only criteria I have specified is for the invoice date field which is as follows: Field: INVCDAT Table: dbo_INIH...
4
by: colin | last post by:
How can I access a field contained in fieldInfo by reference so I can pass it to a function ? ive tried __refvalue but this needs a type known at compile time, I can access it with SetValue and...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.