I have a table that has a few text value types, and I enter a bunch of text
with '\n' representing a newline. When I select the records from that
table, postgresql 7.3 represents those \n as newlines and actually outputs
the a newline rather than as a \n as entered. I want to be able to get my
How does one check for an unset value in an integer field?
I've tried such things as:
select . where intnumber = ''
select .. where intnumber = ?
select . where intnumber = NULL
Thanks.
--
Until later, Geoffrey [EMAIL PROTECTED]
Building secure systems inspite of Microsoft
-
Geoffrey wrote:
How does one check for an unset value in an integer field?
I've tried such things as:
select . where intnumber = ''
select .. where intnumber = ?
select . where intnumber = NULL
Thanks.
It is actually WHERE intnumber IS NULL. You don't use operator = to
compare wi
select . where intnumber IS NULL
Geoffrey wrote:
How does one check for an unset value in an integer field?
I've tried such things as:
select . where intnumber = ''
select .. where intnumber = ?
select . where intnumber = NULL
Thanks.
---(end of bro
Wei Weng wrote:
Geoffrey wrote:
How does one check for an unset value in an integer field?
I've tried such things as:
select . where intnumber = ''
select .. where intnumber = ?
select . where intnumber = NULL
Thanks.
It is actually WHERE intnumber IS NULL. You don't use operator
I have been entering the data by having a command file that inserts the rows
one by one. (yes I know a copy command would probably be faster for
importing bulk data, but I prefer to insert each line individually)
IE: psql -U myusername mydatabase -f '/path/to/commandfile'
Inside the commandfile
On Fri, Dec 19, 2003 at 10:06:28 -0500,
Matt Van Mater <[EMAIL PROTECTED]> wrote:
> I have a table that has a few text value types, and I enter a bunch of text
> with '\n' representing a newline. When I select the records from that
> table, postgresql 7.3 represents those \n as newlines and ac
I just don't see why pgsql can't return my data exactly as I entered it. It
wouldn't be hard for me to manipulate it before entry and add another escape
character, but that's not really the point. The point is why is postgresql
changing the data I insert into a field, and not giving me away to
"Matt Van Mater" <[EMAIL PROTECTED]> writes:
> I just don't see why pgsql can't return my data exactly as I entered
> it.
Because you are using an input syntax that requires that quotes and
backslashes be escaped. There are other input methods available that
don't require this, but they have disa