Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 带读卡器的like和parameter_C#_Sqlite_Parameters_Reader - Fatal编程技术网

C# 带读卡器的like和parameter

C# 带读卡器的like和parameter,c#,sqlite,parameters,reader,C#,Sqlite,Parameters,Reader,我想得到状态像offen的所有行。 但是每次我执行下面的代码时,所有的条目都会从数据库中未经过滤地返回 dgv_protokoll是DataGridView的一个实例 我假设状态是一个字符串 但将SQlLiteCommand更改为: SQLiteCommand sqlcmd = new SQLiteCommand("SELECT * FROM Telefonprotokoll WHERE Status LIKE '@wert'", sqlconnection); SQLiteCommand s

我想得到状态像offen的所有行。 但是每次我执行下面的代码时,所有的条目都会从数据库中未经过滤地返回

dgv_protokoll是DataGridView的一个实例


我假设状态是一个字符串

但将SQlLiteCommand更改为:

SQLiteCommand sqlcmd = new SQLiteCommand("SELECT * FROM Telefonprotokoll WHERE Status LIKE '@wert'", sqlconnection);
SQLiteCommand sqlcmd = new SQLiteCommand("SELECT * FROM Telefonprotokoll WHERE Status LIKE '@wert'", sqlconnection);