質問編集履歴
1
詳細を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,6 +70,56 @@
|
|
70
70
|
|
71
71
|
|
72
72
|
|
73
|
-
|
73
|
+
Convertを使用してみたりもしたのですが、上手くいかず、、、
|
74
74
|
|
75
75
|
修正方法をご教授頂けると幸いです。
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
###追記
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
↓SQLの記述は以下の通りです。
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
connection.Open();
|
90
|
+
|
91
|
+
using (SQLiteCommand command = connection.CreateCommand())
|
92
|
+
|
93
|
+
{
|
94
|
+
|
95
|
+
//SQLの設定
|
96
|
+
|
97
|
+
command.CommandText = "select * from hoge where hoge_id = @hoge_id and fuga_id = @fuga_id";
|
98
|
+
|
99
|
+
command.Parameters.Add(new SQLiteParameter("@hoge_id", hogeId));
|
100
|
+
|
101
|
+
command.Parameters.Add(new SQLiteParameter("@fuga_id", fugaId));
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
command.Prepare();
|
106
|
+
|
107
|
+
using (SQLiteDataReader reader = command.ExecuteReader())
|
108
|
+
|
109
|
+
{
|
110
|
+
|
111
|
+
while (reader.Read())
|
112
|
+
|
113
|
+
{
|
114
|
+
|
115
|
+
// 省略
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
```
|