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.
其实问题就在AND COM_CODE= '20130001'之间的空格不是标准空格,所以希望大家在写代码时一定要注意编程习惯.
网友评论