Question about "prepare statements"
Posted in 1993
Hi, My question is this, I am assured that both of these examples work on most machines, but my Sun running Sunos 4.1.1 and I4GL v4.0 complains about the first example. Eg1 prepare s1 from "insert into fred values (?,?,?,?) execute s1 using "andy_d","CUSTOMER","JUNK","JUNK") Eg2 define str char(80) let str = "insert into fred values (?,?,?,?)" prepare s1 from str execute s1 using "andy_d","CUSTOMER","JUNK","JUNK" The manual uses example 2 style code, but I am assured by the programmer that Eg1 has worked on other machines/setups. Would somebody like to offer any explanation. Thanks Andy ------------------------------------------------------------------------------ HOME: SITE: Email: andy_d@rapier.demon.co.uk Email: X400 : aj.dibbins@old3ec.bt plc.bt.bt.gb Voice: +44 691 666714 Voice: +44 691 778626 FAX: +44 691 670750 -----------------------------------------------------------------------------