Re: Entering ' or " with informix.....
Posted in 1998
pmilitzer@ultracom.com wrote: > > Hi there, > > Is it possible to put a quote or double quote in a field in informix > 7.23. ? An example of this would be: Le' Hermatige . Yes it is. > Is this a > problem with informix? Our vendor says it can't be done cause it > screws up the SQL statements. No it isn't a problem as long as you are careful which quotes you use. It might be a problem for some applications. The only 'screw up' would be an unmatched quote. You would have a problem searching for both quote types in a single string in SQL (although there IS a work-around for that, but probably outside the scope of this answer :). Although the CONSTRUCT statement in 4GL for example, handles this okay. ;-) If you were going to allow quotes in data, I would be tempted to only allow one type. Cheers, -- Mark. +----------------------------------------------------------+-----------+ |Mark D. Stock - Informix SA http://www.informix.com |//////// /| |mailto:mdstock@informix.com http://www.iiug.org |///// / //| | +-----------------------------------+//// / ///| | Tel: +27 11 807 0313 |If it's slow, the users complain. |/// / ////| | Fax: +27 11 807 2594 |If it's fast, the users keep quiet.|// / /////| |Cell: +27 83 250 2325 |Therefore, "No news: travels fast"!|/ ////////| +----------------------+-----------------------------------+-----------+