如何将SQlserver语句 转化成mysql语句

select top 3 *from heshan where userId not in(select top 6 userId from heshan)
2025-04-05 10:58:02
推荐回答(1个)
回答1:

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;

如果对您有帮助,请记得采纳为满意答案,谢谢!祝您生活愉快!