建議把 表的結構,和一些資料列出來,讓其他人可以測試。
select count(*) into g_other2
把as改为into,as是别名,into才是赋值参数。希望我的回答对你有用哦~
select count(*) into g_other2 from user