INSERT INTO FCR.TRANSACTION (
TRX_UNIT,
TRX_DATE,
TRX_USR,
TRX_USR_SN,
TRANSACTION_CODE,
PRODUCT_CODE,
CURRENCY_SHORT_DESCRIPTION,
AMOUNT_FC,
EXCHANGE_RATE,
AMOUNT_DC)
SELECT
SOURCE_SYSTEM_CHANNEL_CODE,
to_char(TRANSACTION_DATE, 'dd/mm/yyyy'),
USER_CODE,
USER_TRANSACTION_SERIAL_NUMBER,
TRANSACTION_CODE,
PROFITS_PRODUCT_CODE,
SHORT_DESCRIPTION,
SOURCE_AMOUNT_FC,
SOURCE_EXCHANGE_RATE,
SOURCE_AMOUNT_EUR
FROM
FCR_TRANSACTION
WHERE
TRANSACTION_DATE = to_char(02-MAY-2006, 'dd/mm/yyyy')
以上是我在ORACLE正在進入查詢,但它給我的錯誤ORA-00904:「可以」:無效的標識符 誰能幫我這個請。謝謝ORA-00904:「可以」:無效的標識符
爲什麼在where子句中使用to_char時,名爲TRANSACTION_DATE的字段應該是DATE類型,而不是CHAR/VARCHAR – Mark