怎么限制Select只返回一行

2025-05-09 06:30:45
推荐回答(1个)
回答1:

应该是 select name into a from table where userid =1 这样的只能返回一行,多行 你就要用游标 ,然后循环取出各个name