【问题标题】:SQL: Invalid column namesSQL:无效的列名
【发布时间】:2014-04-21 05:30:58
【问题描述】:

我正在尝试上传一个表格,但它给了我错误消息:“以下新表格的名称无效:”。它没有指出哪一个是无效的。我所有的列名都是单词。不确定我可能违反哪些规则。下面是截图。

DMS NOTDMS engine arsenic sediment cartilage articular bone freight solutions neutrino heart stripe plasma indoor calcium power fixture eye chloride tellurium alloys egg corrosion market antenna metal ice quantum invasibility interrupt ventilation ammonia pollen syringae text auxin editing compression copper dpp clock enduring taxes blue kinase dolomite meristem isoprene proteins halo context information type detector oxygen invariants aequorin attractors ribosome actin cellulose tubulin binding site disulfide midgut alternative oxidase fischeri agreement snow cements excluded attitudes law nucleotide music homotopy periplasmic translocation stomatal phosphoprotein flagellar late motors operons replication sigma recombination streamflow fluidity police muscle blood heme replicative kelps estrogen elderly witnesses fire splicing scaffolding subunits erosion reef climate abnormal operator holographic braided seeding kidney cortical photonic functor homology river alluvial sand inlet import nitrogenase aleurone maturation guard light inositol membrane clay lightning recycling amoebae dyneins thioredoxin coat 3-manifolds mercury diving sludge sources fluorine conductivity hydraulic glucose designs condensate amorphous treeline

【问题讨论】:

  • 粘贴您的列名..可能其中之一是关键字或包含无效字符
  • 列 'engine' 可能会导致问题。
  • 名单真的好长……
  • 请检查列名之间没有空格,如`夹具眼氯化物`,如果是一列,那么这是原因
  • 它们是独立的列。

标签: oracle oracle-sqldeveloper import-table


【解决方案1】:

短版:

  • 列名不是问题
  • 错误消息的标题可能表明并非每条记录都具有您希望的数据类型

我使用 microsoft sql server 2008 R2 Express 导入了一个与您在上面提供的列名相同的平面文件 (csv)。导入工作正常;每个列名都被导入。会不会是您的列名中有一些不可见的字符导致了问题?

如果您提供更多信息,我们可以提供更好的帮助。

  • 您使用的是哪个版本的 sql server
  • 提供文件的来源
  • 提供其他错误信息以及您导入文件的方式

我的回答是列名不是问题 - 至少不是 sql server 2008 R2 express。

【讨论】:

    【解决方案2】:

    Oracle 关键字:

    • 类型(在信息类型中)

    SQL 关键字可能导致该问题:

    • 权力
    • 操作员

    您需要更改这些列名以避免任何进一步的错误。

    如何检查:将列表粘贴到任何 SQL 编辑器 (Notepad++)。关键字突出显示。

    【讨论】:

    • 感谢您的提示。
    【解决方案3】:

    我遇到了类似的问题(使用 Oracle SQL Developer 3.2)

    我的问题是我有一个索引列(没有名称)。因此无法选择,在错误提示中显示为空。

    希望这可以帮助任何可能面临同样问题的人

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多