如何将SQlserver语句 转化成mysql语句
selecttop3*fromheshanwhereuserIdnotin(selecttop6userIdfromheshan)...
select top 3 *from heshan where userId not in(select top 6 userId from heshan)
展开
展开全部
CREATE PROCEDURE getNextSeq2 tableName varchar(255),out nextseq numeric(10),out lastseq numeric(10)
begin
update CAREFX_TABLE_SEQ
set lastseq = seq = seq + 10
where table_name=tableName;
set nextseq = lastseq-10;
set lastseq = lastseq-1;
end;
如果对您有帮助,请记得采纳为满意答案,谢谢!祝您生活愉快!
begin
update CAREFX_TABLE_SEQ
set lastseq = seq = seq + 10
where table_name=tableName;
set nextseq = lastseq-10;
set lastseq = lastseq-1;
end;
如果对您有帮助,请记得采纳为满意答案,谢谢!祝您生活愉快!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询