freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] Re: Inserting empty strings into MS SQL Server
- From: "Joseph Geiser" <joe AT mail.paravisions.com>
- To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] Re: Inserting empty strings into MS SQL Server
- Date: Mon, 9 Aug 2004 16:06:52 -0400
Scott Johnson writes,
> I might be incorrect in stating this, but doesn't ('') equate
> itself to
> one apostrophe for the purpose of inserting that?
>
>
> (1, 'foo', ' ', '', 'foo', 'foo', 'foo', 'foo', 'foo', 'foo', 'foo',
> 'foo',
> 'foo', 'foo', 'foo', 'foo', 'foo', 'foo', 'foo', 'foo', 'foo')
Not in an INSERT, where the only characters in a column are '' -- this
translates to "empty string" (not NULL). If the value had characters and a
double-apostrophe (ie: 'O''Malley') - then it would be an escaped
apostrophe.
HTH...
Joe
-
[freetds] Re: Inserting empty strings into MS SQL Server,
Charles Bearden, 08/09/2004
-
RE: [freetds] Re: Inserting empty strings into MS SQL Server,
Scott Johnson, 08/09/2004
-
RE: [freetds] Re: Inserting empty strings into MS SQL Server,
Joseph Geiser, 08/09/2004
- Re: [freetds] Re: Inserting empty strings into MS SQL Server, Scott Johnson, 08/09/2004
-
RE: [freetds] Re: Inserting empty strings into MS SQL Server,
Joseph Geiser, 08/09/2004
-
Re: [freetds] Re: Inserting empty strings into MS SQL Server,
James K. Lowden, 08/09/2004
- RE: [freetds] Re: Inserting empty strings into MS SQL Server, Joseph Geiser, 08/10/2004
- Re: [freetds] Re: Inserting empty strings into MS SQL Server, Frediano Ziglio, 08/10/2004
- <Possible follow-up(s)>
- RE: [freetds] Re: Inserting empty strings into MS SQL Server, Charles Bearden, 08/09/2004
- RE: [freetds] Re: Inserting empty strings into MS SQL Server, Charles Bearden, 08/10/2004
- RE: [freetds] Re: Inserting empty strings into MS SQL Server, Charles Bearden, 08/10/2004
- RE: [freetds] Re: Inserting empty strings into MS SQL Server, Charles Bearden, 08/10/2004
- RE: [freetds] Re: Inserting empty strings into MS SQL Server, Charles Bearden, 08/10/2004
-
RE: [freetds] Re: Inserting empty strings into MS SQL Server,
Scott Johnson, 08/09/2004
Archive powered by MHonArc 2.6.24.