Jump to content

How to fetch the value


sandy1028

Recommended Posts

first value you mean first row if so use the limit statement...

 

select * fromt tablename limit 1

That's not the first row... there is no first.  That's a random row.

 

If you want the first by date, ask for it  -- WHERE yourDate = CURDATE() ORDER BY yourDate DESC LIMIT 1.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.