简体   繁体   English

SQL Server:创建表

[英]SQL Server : creating a table

When creating a table in SQL Server, it is created using dbo.<tableName> format. 在SQL Server中创建表时,将使用dbo.<tableName>格式创建表。

I want to change dbo .tableName to source .tableName, as I want to import data into a source table and then cook that data. 我想将dbo .tableName更改为source .tableName,因为我想将数据导入到源表中,然后烹饪该数据。

Thanks 谢谢

You are talking about schemas. 您正在谈论模式。 If the schema source doesn't exist yet, you need to run create schema source . 如果模式source尚不存在,则需要运行create schema source Once the schema exists it's as easy as create table source.tableName (...) . 模式一旦存在,就如同create table source.tableName (...)一样容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM