|
Hi, First check the field, which you want to insert null value, Allow Null parameter is TRUE, if False you may use ALTER TABLE SQL command. Exm: ALTER TABLE ISTBAG/CTYPF ALTER COLUMN CTYNAME DROP NOT NULL then try again. PS : You may use '' for character fields or '01.01.0001' to date fields instead of NULL. -----Original Message----- From: jagbir singh [mailto:j_singh@hotmail.com] Sent: Monday, August 07, 2000 10:12 PM To: MIDRANGE-L@midrange.com; rpg400-l@midrange.com; JAVA400-L@midrange.com Subject: Urgent!! Hi All, Hope someone can help on SQL. I am trying to insert a record with NULL in the field and online SQL is not alloing me to do it. May be i am writing the wrong statement. Pl help me out in this thing. Hope to hear from someone soon..My SQL statement is as follows.. Insert into jtbtst/ps_tw_dtl_gl_tmp select process_instance, seq_nbr, business_unit,currency_cd, cur_exchng_rt, tw_account_apar, tw_account_cr, tw_account_dr,account_d, tw_detail_dt, tw_defacct_ptr, tw_def_timing, statistics_code, tw_act_amt, act_units, ' ', ' ', ' ', ' ', tw_atlas_id, batch_num,' ', null,'2000-08-04', '', from jtbbprd/ps_tw_detail where process_instance = '95045' Pl reply soon. Thanks ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.