用SQL语句如何同时给多表授权?
要将数据库里表名是rsgl 开头的所有表,授权 select、,insert ,update ,delete 权限给一个同事,我写的语句:grant select ,insert ,update ,delete on (select name from sysobjects where name like 'rsgl%' and xtype = 'u' ) to xxb_thb
出错信息:
服务器: 消息 170,级别 15,状态 1,行 1
Line 1: Incorrect syntax near '('.
服务器: 消息 156,级别 15,状态 1,行 1
Incorrect syntax near the keyword 'to'.
请问下错在什么地方? 还是grant 语句不能同时多表授权?