我在数据库中创建此表,唯一的问题是,它创建为 dbo.OPTC.ZIP_ALLZIPCODES
How to create this without the dbo?
CREATE TABLE [OPTC.ZIP_ALLZIPCODES](
[ZIPCODE] [nvarchar](5) NULL,
[CITY] [nvarchar](28) NULL,
[STATEABBREVIATION] [nvarchar](2) NULL
) ON [CODES]
答案 0 :(得分:2)
这应该有用,你必须在.
CREATE TABLE [OPTC].[ZIP_ALLZIPCODES](
[ZIPCODE] [nvarchar](5) NULL,
[CITY] [nvarchar](28) NULL,
[STATEABBREVIATION] [nvarchar](2) NULL
) ON [CODES]
答案 1 :(得分:1)
如果您尝试将OPTC设为架构而不是DBO,请尝试以下操作:
CREATE TABLE [OPTC].[ZIP_ALLZIPCODES](
[ZIPCODE] [nvarchar](5) NULL,
[CITY] [nvarchar](28) NULL,
[STATEABBREVIATION] [nvarchar](2) NULL
) ON [CODES]