0

这个循环可以在 sql 中完成吗?

Dim ID(0 TO 2) as string
Dim number as string

ID="01"
ID="02"


For each number in ID
   SELECT data FROM sheet1 WHERE data= number
next number

datatable:
data
01
01
02
03
04
4

1 回答 1

1

这可以使用IN谓词来完成:

SELECT data FROM sheet1 WHERE data IN(1, 2);
于 2013-03-21T03:30:29.557 回答