August 12th, 2009
Host Programs, INSERT
Posted by
admin in
S. Host Programs
A host program INSERT does not require cursor control and functions the same as a stand-alone SQL INSERT. Here is an example of a host program CREATE TABLE and INSERT examples:
EXEC SQL
CREATE TABLE PILOT_TBL
(PILOT_ID CHAR(5) PRIMARY KEY,
FIRST_NAME CHAR(20) NOT NULL,
LAST_NAME CHAR(20) NOT NULL,
LICENSE_NO CHAR(10),
PHONE_NO INTEGER NOT NULL DEFAULT)
END-EXEC
EXEC SQL
INSERT INTO PILOT_TBL
VALUES (:WS-PILOT, :WS-FIRST, :WS-LAST, :WS-LICENSE, WS-PHONE)
END-EXEC
EXEC SQL
INSERT INTO PILOT_TBL
(PILOT_ID, FIRST_NAME, LAST_NAME, LICENSE_NO, PHONE_NO)
VALUES (:WS-PILOT, :WS-FIRST, :WS-LAST, :WS-LICENSE, WS-PHONE)
END-EXEC
Thank you, this is an outstanding list I’m fresh to all this but wish to setup my first blog soon so I stand for on printing this out and contributing it to my boxfile.
Great post - I was just curious how do you get hold of such a good domain?
Thank you for your help!
Your blog is so informative
Interesting and informative. But will you write about this one more?
thank you for this useful post. Site bookmarked..
great ! theme, loove it
Thanks seeking information. I am present to bookmark this page.
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It?s the old what goes around comes around routine.
Finally, got what I was looking for!! I definitely enjoying every little bit of it. Glad I stumbled into this article! smile I have you bookmarked to check out new stuff you post