本文介绍了无效的对象名称'information_schema.columns'。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
con2.Open();
string query = "SELECT column_name FROM information_schema.columns where table_name = '" + str + "' order by ordinal_position";
SqlDataAdapter mydata = new SqlDataAdapter(query, con2);
mydata.Fill(ds1, str);
error无效的对象名称'information_schema.columns'。我该怎么做帮助
error Invalid object name 'information_schema.columns'. what i do pls help
推荐答案
string query = "SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS where table_name = '" + str + "' order by ordinal_position";
更改资本问题中的INFORMATION_SCHEMA.COLUMNS解决方法谢谢
change the INFORMATION_SCHEMA.COLUMNS in capital problem solve thank you
这篇关于无效的对象名称'information_schema.columns'。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!