column insert

Поиск
Список
Период
Сортировка
От P. Jourdan
Тема column insert
Дата
Msg-id 5.1.0.14.2.20020502111644.00a8f3b8@mail.host45.com
обсуждение исходный текст
Ответы Re: column insert  (Scott Marlowe <scott.marlowe@ihs.com>)
Список pgsql-php
I have to insert 2 columns into an existing database that seems to be
altered after a restore. I do not know what datatype should be entered for
"path" and for "referer". The others are int4 and timestamptz for when_stamp.
Here is the code:
/*
      * Statistics: write page view
      */
     if($loglevel>=1) {
    sqlquery("
        insert into visits (session_id,page_id,when_stamp,path,referer)
        select session_id,$page_id,'now','$REQUEST_URI','$HTTP_REFERER'
        from session
        where hash='$sid'");
     }
  Thanks for any help.
Phil Jourdan


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

Предыдущее
От: Surojit Niyogi
Дата:
Сообщение: Re: Do yo know any function that...
Следующее
От: PJourdan
Дата:
Сообщение: sql command