I have a query:
SELECT
ZIPSECvc255Zip,ZIPSECCODIServiceType
FROM towSearch_ZIP_ZipCodesSecondary
WHERE ZIPSECCOMlAPAssignee = 57055
AND ZIPSECCODlAPStatus = 302
AND ZIPSECCODIServiceType in (263,1012)
AND ZIPSECADDIKey = 314105
I am getting follow result:
ZIPSECvc255Zip ZIPSECCODIServiceType
17001 263
17003 1012
17007 1012
17003 263
所有值滿足我想是因爲它與這兩個ZIPSECCODIServiceType(即263,1012)相關的17003只單個記錄的記錄。我怎樣才能實現使用查詢?檢索從MySQL,對於在IN子句