Bytea updation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Dear Friends,
    How to insert or update a file in a table using the query in postgres
CREATE TABLE excel_file_upload
(
  user_id integer,
  excel_file bytea
}
 
example
insert into excel_file_upload values(1,file1)
 
file1 can be any file *.doc,*.xls
    How i can do this(with out using java or any other language) using query?
Please help me out
 
Regards,
Ram

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux