如何在MS Access中的INSERT INTO/SELECT查詢中顯式轉換數據類型?在MS ACCESS中設置數據類型SQL插入查詢
示例查詢:
INSERT INTO pStudents(pStudentID, pDate, pRate, pGrade)
SELECT sStudentID, sDate, sRate, sGrade
FROM sStudents
WHERE (((sStudents.sStudentID) Is Not Null);
在這裏,我想在pStudents插入到以下前,從sStudents表中的字段轉換:
pStudentID = text
pDate = Short Date
pRate = Double
pGrade = text
在此先感謝
您可以發佈樣本查詢作爲wela作爲數據類型,你想要轉換爲/從? – Taryn 2012-02-28 20:06:51
@bluefeet更新數據類型的示例查詢 – user793468 2012-02-28 20:15:43
@ user793468:更新了我的答案! – 2012-02-28 20:24:40