Problem with /usr/local/pgsql/bin/psql

Поиск
Список
Период
Сортировка
От
Тема Problem with /usr/local/pgsql/bin/psql
Дата
Msg-id D9F5C94B9B5B84458C5D2E9CE8FD26FD037F80AF@swagath.wipro.com
обсуждение исходный текст
Ответы Re: Problem with /usr/local/pgsql/bin/psql  (Robin Iddon <robin@edesix.com>)
Re: Problem with /usr/local/pgsql/bin/psql  (JSP <jason.palivino@gmail.com>)
Список pgsql-admin
Hi ,
 
    I am trying to insert data into the table via shell script using psql command.
    But it giving syntax error. the same query is finely working pgAdmin III client.
    The query and error given below.
 
    Eg:
        /usr/local/pgsql/bin/psql -d temp -c 'insert into temp.ip_mapping_tb(ip,location)  values('192.100.9.51','FirstFloor')'
 
        ERROR:  syntax error at or near ".9" at character 85
        LINE 1: ...pping_tb(ip,location)  values(192.100.9.51,Firs...
 
        Also when i am givinf Firstfloor as First Floor it was giving error
 
        /usr/local/pgsql/bin/psql -d temp -c 'insert into temp.ip_mapping_tb(ip,location)  values('192.100.9.51','First Floor')'
 
        psql: FATAL:  role "Floor)" does not exist

 

       

Thanks and Regards

Dhanesh

 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

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

Предыдущее
От: "danish.siddiqui@hovservices.com"
Дата:
Сообщение: tomcat postgresql database conectivity error
Следующее
От: Sergio López
Дата:
Сообщение: problem installing 8.1.3