-4
私は次のvb.net 2010とMYSQLを持っており、私は切断モードを使用しました。vb.net変数の在庫値
は、私はデータセットを作成し、切断モードでのSQLクエリをexcuteするにはどうすればよい
dim value1 as int = (select count(*) from table)
をしたいですか?事前に
Thnanks
私は次のvb.net 2010とMYSQLを持っており、私は切断モードを使用しました。vb.net変数の在庫値
は、私はデータセットを作成し、切断モードでのSQLクエリをexcuteするにはどうすればよい
dim value1 as int = (select count(*) from table)
をしたいですか?事前に
Thnanks
dim value1 as int
using connection as SqlConnection = new SqlConnection(YOURCONNECTIONSTRING)
connection.open
using command as SqlCommand = new SqlCommand("select count(*) AS QTY from table", connection)
using reader as SqlReader = command.ExecuteReader()
value1 = reader.getInt32(reader.GetOrdinal("QTY"))
End Using
end Using
End Using
いずれかが私を助けてくださいすることができます –