Re: select * from table not showing everything

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: select * from table not showing everything
Дата
Msg-id D089E2FF-1A68-4166-895B-AB4C738C7AB8@pgedit.com
обсуждение исходный текст
Ответ на select * from table not showing everything  (Richard Dunne <richarddunne1971@yahoo.com>)
Список pgsql-php
On Apr 28, 2007, at 10:09 AM, Richard Dunne wrote:

> $result=pg_query($connect, "insert into customer values
> ('$customer_name', '$customer_address', '$customer_contact_no')");

Are these really the first columns in the customer table? If not, you
need to specify the target columns in the insert, e.g.

insert into customer (customer_name, customer_address,
customer_contact_no) values ('$customer_name', '$customer_address',
'$customer_contact_no')

Even if these are the first columns, it is not a good idea to leave
the column specs out since your code will break if you change the
table in an incompatible way.





John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


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

Предыдущее
От: Richard Dunne
Дата:
Сообщение: select * from table not showing everything
Следующее
От: Richard Dunne
Дата:
Сообщение: Fw: select * from table not showing everything