I want to simulate an auto_increment scenario during an insert without the field having the auto_increment property. Here is the scenario sql statement:
insert into acct set id=(select @vid:=max(id)+1); select @vid;
Basically, I want the insert and select done at the same time so I can guarantee the value of vid is unique.