日期:2014-05-18 浏览次数:20507 次
建議樓主這樣實現 USE master go CREATE TABLE users(ID INT IDENTITY PRIMARY KEY,NAME NVARCHAR(50)) GO USE Test GO CREATE VIEW users AS SELECT * FROM master.dbo.users go INSERT users SELECT 'Roy' GO SELECT * FROM master.dbo.users /* ID NAME 1 Roy */