Not Null Field

Поиск
Список
Период
Сортировка
От Margarita Barvinok
Тема Not Null Field
Дата
Msg-id Pine.SOL.4.10.9909201123400.15989-100000@breakout.rs.itd.umich.edu
обсуждение исходный текст
Ответы Re: [INTERFACES] Not Null Field  (Michael Meskes <meskes@postgresql.org>)
Re: [INTERFACES] Not Null Field  (Ivo Simicevic <ivo@ultra.hr>)
Список pgsql-interfaces
Hi,

I created the phonebook table with NOT NULL fileds:

create table phonebook (
first varchar(20) NOT NULL,
last varchar(20) NOT NULL,
uniqname char(8) NOT NULL PRIMARY KEY,
phone varchar(30),
status char(7) NOT NULL,
room varchar(40) );

If I try to insert NULL values into those fields from psql I got an error
message - that is right.
But when I insert records from my C-program (with embedded SQL) I dot no
errors and such records are added to the table. I even can insert empty
record. Why this happens? Do I need to write some code to check NULL
values?

Thank you,
-Margarita


-------------------------------
Margarita Barvinok
System Administrator II
University of Michigan
Department of Biology
-------------------------------



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: eem21@cam.ac.uk
Дата:
Сообщение: libpq - changes for async connections - Windows tester required
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [INTERFACES] Not Null Field