MySQL Forums
Forum List  »  Newbie

Re: Displaying designated record first in a SELECT result
Posted by: Andrew Gilfrin
Date: July 27, 2005 02:31PM

Would limit do the trick?

mysql> select * from emps limit 1;
+--------+----------+---------+-----------+---------+---------+
| emp_id | emp_name | dept_id | dept_name | salary | user_id |
+--------+----------+---------+-----------+---------+---------+
| 1 | Roger | 1 | NULL | 2000.00 | NULL |
+--------+----------+---------+-----------+---------+---------+
1 row in set (0.01 sec)

Andrew Gilfrin
------------------
http://gilfster.blogspot.com
My MySQL related Blog

http://www.mysqldevelopment.com
MySQL Stored Procedure,Trigger, View.... (Just about most things these days) Information

Options: ReplyQuote


Subject
Written By
Posted
Re: Displaying designated record first in a SELECT result
July 27, 2005 02:31PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.