Quote:
|
Insert into ident (idclient) values (Select max(idclient) from table1)
|
pay attention, this form is avaible only on vfp8+
I found out that the quickest way is to use the array (I normaly use vfp6),for example I should use:
dimension aRes(3)
aRes[1]=0
aRes[2]=""
aRes[3]=""
select max(idclient)+1,"","" from table1 into array aRes
insert into table1 from array aRes
the init fase is necesary because if the table is empty it give you only a empty array...
this way is usefull even when you have to insert more lines...