我是sqlserver的新手,我遇到了一个错误:
%1%5%20%1%10%50%8%3
%4%255%20%1%14%50%8%4
此错误原因的代码是下面的连接字符串:
allProvinces = null
有人可以让我知道这个问题的原因吗?如何解决?
答案 0 :(得分:3)
val rdd = processedRdd.map(r => Row.fromSeq(r))
val dataframe = sqlContext.createDataFrame(rdd, schema)
dataframe.save("org.apache.phoenix.spark", SaveMode.Overwrite,
Map("table" -> HTABLE, "zkUrl" -> zkQuorum))
不是SQL Server关键字。我想你打算:
autoincrement
此外, string sqlStatement2 = "CREATE TABLE " + Table2Name + "" +
"(line_id int not null identity(1, 1) PRIMARY KEY, " +
"line_full_name CHAR(50) NOT NULL," +
" network_id INTEGER FOREIGN KEY REFERENCES network(network_id))";
需要表引用。