seems like a gimme but...is
where id is integer and the primary key

insert into mytable (id,col1,col2)  values ((select max(id) from
mytable+1),col1val,col2val)

can you do that and is it a legit way to get a primary key?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to