当前位置: 代码迷 >> Sql Server >> 多行SQL语句用什么符号连接成一行?解决方案
  详细解决方案

多行SQL语句用什么符号连接成一行?解决方案

热度:65   发布时间:2016-04-27 16:25:50.0
多行SQL语句用什么符号连接成一行?
例如:
use   corporate
go
sp_adduser   'Albert ', 'Albert '   , 'db_owner '

这三句,如果我是写在一行,怎么连接?
use   corporate+go+sp_adduser   'Albert ', 'Albert '   , 'db_owner '?

------解决方案--------------------
这样试一下
use corporate exec sp_adduser 'Albert ', 'Albert ' , 'db_owner '
  相关解决方案