0
我想知道是否可以暫時更改SQL中的數據暫時更改SQL數據
我有三個月爲varchar七月,八月和九月。我想分別將其更改爲1,2,3,這樣我可以做到以下幾點:
SELECT * FROM
(
(SELECT aID, month AS monthA FROM tblA) AS a
INNER JOIN
(SELECT bID, month AS monthB FROM tblB) AS b
ON a.ID = b.ID
)
WHERE a.month < b.month
我知道這工作
SELECT * FROM
(
(SELECT aID, month AS monthA FROM tblA) AS a
INNER JOIN
(SELECT bID, month AS monthB FROM tblB) AS b
ON a.ID = b.ID
)
WHERE (a.month = 'July' AND b.month = 'August')