@No=select max(no) from reg_table
select @No = max(no) from reg_table
select @No = max(no) from reg_table insert into table values('1','101',@No);
insert into table select '1', '101', (Select max(no) from reg_table)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)