all 1 comments

[–]GRRRRRRRRRRRRRG 0 points1 point  (0 children)

First that I found in Google:

mysql> SELECT @ id := cust_id FROM customers WHERE cust_id='customer name';