我在SQL編程方面頗爲陌生,但仍然苦於基本。我需要從指定的ID字符串中提取一些特定的行。從特定值的字符串中獲取數據SQL
ID Product City
1 Apple London
2 Banana Berlin
3 Orange Berlin
4 Orange Paris
5 Apple Paris
6 Banana Copenhagen
7 Banana Copenhagen
8 Banana London
9 Apple Paris
10 Orange London
11 Apple Berlin
12 Apple Copenhagen
13 Apple Paris
如果我需要選擇ID = 1,2,5,6,10,11,13如何從數據庫中提取這些特定行? 我正在使用SQLite。
在此先感謝。
你嘗試WHERE子句? – Max