2013-04-23 65 views

回答

3

使用LIKE%

SELECT * FROM people WHERE last_name LIKE 'A%' OR last_name LIKE 'B%' OR last_name LIKE 'C%' OR last_name LIKE 'E%' 
+0

感謝你的答案,我已經建立了下面的操作:選擇VENDOR_NAME, CONCAT(vendor_contact_last_name,「」,vendor_contact_first_name)AS FULL_NAME FROM供應商 WHERE vendor_contact_last_name LIKE'A%'OR vendor_contact_last_name LIKE'B%' OR vendor_contact_last_name LIKE'C%'OR vendor_contact_last_name LIKE'E%'ORDER BY vendor_contact_last_name; – 2013-04-24 22:40:53

0

非常感謝。與模型你爲我提供了我發展下一個:

SELECT vendor_name, 
    CONCAT(vendor_contact_last_name, ', ', vendor_contact_first_name) AS full_name 
FROM vendors 
WHERE vendor_contact_last_name LIKE 'A%' OR vendor_contact_last_name LIKE 'B%' 
    OR vendor_contact_last_name LIKE 'C%' OR vendor_contact_last_name LIKE 'E%' 
ORDER BY vendor_contact_last_name; 
相關問題