Help!!!! How to synchronized the data in SQL server# Database - 数据库
f*f
1 楼
What I want to do is something like that:
declare @id
select @id=max(id) from mytable
if(@id is null)
@id=0
else
@[email protected]+1
insert into mytable(@id,'aa','bbb')
But How to synchronized it when multiple connetions access database.
I use JDBC..
Thank you
declare @id
select @id=max(id) from mytable
if(@id is null)
@id=0
else
@[email protected]+1
insert into mytable(@id,'aa','bbb')
But How to synchronized it when multiple connetions access database.
I use JDBC..
Thank you