简体   繁体   English

将Excel列名称导入到SQL Developer以创建表

[英]Importing excel column names to sql developer to create table

i have an excel spreadsheet with 55 columns. 我有55列的Excel电子表格。 Is there a way to import these columns names into oracle sql developer so i don't have to create a table and insert these 50 columns name and data type manually. 有没有一种方法可以将这些列名称导入到oracle sql developer中,所以我不必创建表并手动插入这50个列名称和数据类型。 Instead, have oracle create a table with these columns names and data type. 而是让oracle使用这些列名称和数据类型创建一个表。 Thanks 谢谢

You can load the data from a spreadsheet - well a CSV file - using an external table. 您可以使用外部表格从电子表格(以及CSV文件)中加载数据。 Find out more. 了解更多。

Oracle won't generate the table projection from the spreadsheet. Oracle不会从电子表格生成表格投影。 However, it would be a piece of cake for you to cut'n'paste the spreadsheet column headings into a text editor and turn them into a CREATE TABLE statement, especially if you use a text editor which supports regex search & replace. 但是,将电子表格列标题剪切为文本编辑器并将其转换为CREATE TABLE语句对您来说可是小菜一碟,特别是如果您使用支持正则表达式搜索和替换的文本编辑器时,尤其如此。 In fact that would take you about as much typing as asking this question on SO. 实际上,这将使您像在SO上问这个问题一样花很多时间。

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

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