1
我有一個表:列A包含B列
-------------------
col1 |col2 |
--------------------
DaveSmith |Dave |
RogerChu |Roger |
GaryBee |Dan |
我想選擇COL1如果它包含COL2的內容....
DaveSmith
RogerChu
我不太清楚如何去了解這一點:
SELECT col1 WHERE col1 REGEXP (SELECT something??)????
SELECT col1 WHERE col1 LOCATE (SELECT something?? , SELECT somethingelse??)??
感謝
這麼簡單...我覺得自己像一個白癡甚至問。謝謝! – 2011-02-28 02:38:02