SQL操作應(yīng)用——查詢用戶創(chuàng)建的所有數(shù)據(jù)庫(kù)
提問(wèn)人:ylm發(fā)布時(shí)間:2020-09-30
查詢用戶創(chuàng)建的所有數(shù)據(jù)庫(kù)
select * from master..sysdatabases D where sid not in(select sid from master..syslogins where name='sa')
或者
select dbid, name AS DB_NAME from master..sysdatabases where sid <> 0x01
繼續(xù)查找其他問(wèn)題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>