我正在尝试将 CSV 导入 SQL。CSV 是非常大的 4g,所以我相信这确实是查询数据的唯一选择。
我已经创建了一个新数据库,现在尝试创建将保存信息的表。
我已经运行了以下内容:
CREATE TABLE Provider_NPI
(NPI INT,
Entity Type Code INT,
Replacement NPI INT,
Employer Identification Number (EIN) INT,
在 INT 之后,它继续处理 300 多个标题,但在三个不同的标题上出现错误,并出现“MSG 4145,15 级,状态 1,X 行”错误。我已经把它们列出来了
Error:
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near 'Code'.
对于这一行: Replacement NPI INT,
这上面的行是Entity Type Code INT,
Error:
Msg 4145, Level 15, State 1, Line 29
An expression of non-boolean type specified in a context where a condition is expected, near 'U'.
对于这一行: Provider Business Mailing Address Telephone Number VARCHAR(75),
Error:
Provider Business Practice Location Address Telephone Number VARCHAR(75),
对于这一行: Provider Business Practice Location Address Telephone Number VARCHAR(75),
谁能帮我确定什么是错的?我相信这可能与某些标题名称有关?