解决Oracle ORA-00984: column not allowed here
某列是字符列,结果忘记加单引号了
INSERT INTO prt_document_present
(company_code, doc_no, seq_no, field_name, desc_msg, width, align, is_numeric, deci_length,
is_group, has_data, row_span, col_span, need_sum, color_r, color_g, color_b, is_group_field,
is_func_field)
VALUES
('00', 'prt_demo2', 40, 'ip as ip2', 'ip 2', 10, 'C', 'N', 0, 'N', 'Y', 1, 1, 'N', 0, 0, 0, 'N', N)
如上SQL,这其实是最简单的问题,可惜眼力劲不够好,我没有看到最后面的那个N忘记加单引号,加了单引号就ok了