Recent

Author Topic: Postgres and Views and Lazarus  (Read 5008 times)

cpalx

  • Hero Member
  • *****
  • Posts: 754
Postgres and Views and Lazarus
« on: May 12, 2010, 08:21:07 pm »
hello

i dont know how to make it work

i made a view in postgresql (create view Qty where ...) and then i make a select (select a,b,c from Qty), it works perfectly in Pgadmin, but when i make it in lazarus, it does not work, the error just says access violation. The sentences is in one block.

something like:  Query.Text:='create view Qty..; select a,b,c from Qty'

any ideas?

Silvio Clécio

  • Guest
Re: Postgres and Views and Lazarus
« Reply #1 on: May 12, 2010, 08:51:27 pm »
I use, but with ZSQLProcessor.

Please, see this sample (with tables, but, is same):

http://www.silvioprog.com.br/downloads/MakeTablesInRuntime.zip

Good luck.  ;)

 

TinyPortal © 2005-2018