Re: ESQL/C insert statement problem
Posted in 1991
Path: emory!samsung!uunet!trac2000!das13!dave
From: dave@das13.snide.com (Dave Snyder)
Newsgroups: comp.databases.informix
Message-ID: <1559@das13.snide.com>
Date: 6 Dec 91 16:31:08 GMT
References: <1991Dec05.192501.13636@dircon.co.uk>
Organization: Snide Inc. - Folcroft, PA
In article <1991Dec05.192501.13636@dircon.co.uk>, uaa1006@dircon.co.uk (Peter Miles) writes:
->
-> The manual for Informix-Esql/C (Version 4.0) says that if you
-> have a structure defined as follows...
->
-> $struct foo
-> {
-> char name[20];
-> char address[20];
-> char phone[20];
-> } bar;
->
-> ...you can use the following statement to add a record to a
-> table...
->
-> $insert $foo into customer;
Actually the manual says this...
INSERT INTO tabname VALUES (value-list);
You may want to double-check your syntax and try this...
$insert into customer values ($bar);
Remember, "foo" is the template name, "bar" is the structure name.
DAS
--
David A. Snyder @ Snide Inc. - Folcroft, PA Current Release
is db4glgen-3.2
UUCP: ..!uunet!das13!dave INTERNET: Dave.Snyder@snide.com