約2件1ページ目
条件を指定して検索しています。すべての条件を解除する
7時間前 -Which SqlCommand execution returns the number of effected records in the table? A) ExecuteNonQuery. B) ExecuteReader. C) ExecuteXmlReader. D) ExecuteScalar.
15時間前 -核心对象是 SqlConnection 、 SqlCommand 、 SqlDataReader 和 SqlDataAdapter 。 ... ExecuteReader(). While reader.Read(). Console.WriteLine(reader(“Name”)). End ...
A.ExecuteReaderメソッドがオブジェクトを返すため、newでインスタンスを作成しなくても、drにSqlDataReaderクラスのオブジェクトを格納できます。 このため、newを付けると...
A.ExecuteReader を使うのではなく、ExecuteScalar を使ってみてはどうでしょう。 参考 https://hosopro.blogspot.com/2016/09/sqlco...
Q.Visual Studio 2019 visual basicでaccdbレコード抽出について ①のようにエラーが出ます「*」で囲んでるところをとれば接続はできるrd = cmd.Execute...
A.cmd.Connection = cn sqlcommandのconnectionにcnを設定しているが、cnはnewでインスタンス作成したけどそれっきりで、 実際にopenしているのはconn...