SELECT
COM_CODE
,COM_NAME
FROM DB2ADMIN.W_COMPANY
WHERE COM_TYPE ='03' AND COM_CODE= '20130001'
2017-01-05 13:30:34,506 ERROR - LogWriter:com.ibm.db2.jcc.b.SqlException: " COM_CO" is not valid in the context where it is used.
其實(shí)問題就在AND COM_CODE= '20130001'之間的空格不是標(biāo)準(zhǔn)空格,所以希望大家在寫代碼時(shí)一定要注意編程習(xí)慣.