关于(查询数据时临时建立的主键) 写有关在数据库中查询信息的代码,查询表 XX 中ID中是否有 9527 这项,ID已经设置为主键
OracleConnection thisConnection = new OracleConnection(@"Data Source=**;User ID=**;Password=**"); OracleDataAdapter thisDataAdapter = new OracleDataAdapter("SELECT ID FROM XX", thisConnection); OracleCommandBuilder thisBuilder = new OracleCommandBuilder(thisDataAdapter); DataSet thisDataSet = new DataSet(); thisDataAdapter.Fill(thisDataSet, "OOXX");