* * *

Author Topic: Gestire i database access con lazzarus  (Read 4080 times)

nanny

  • Newbie
  • Posts: 1
Gestire i database access con lazzarus
« on: September 11, 2012, 02:45:15 pm »
Non avendo a disposizione gli oggetti ADu non riesco a usare il database access con lazzarus, qualcuno sa darmi una mano?
Il mio problema è questo:
devo poter fare delle query con parametri ma non so cosa usare,ho provato a cercare in giro ma non riesco a cavare un ragno dal buco
qualcuno mi salva dal baratro?

ezlage

  • Full Member
  • ***
  • Posts: 248
  • (Silêncio)
Re: Gestire i database access con lazzarus
« Reply #1 on: September 11, 2012, 06:01:49 pm »
I tried to translate your post, but I did not understand well.

If you speak in english or in portuguese, I can try to help you.

Regards.

Using and setting up a parameter and its value.
Code: [Select]
  ZQuery1.ParamByName('someparam').Value:='somevalue';
  ZQuery1.Close;
  ZQuery1.SQL.Clear;
  ZQuery1.SQL.Add('select * from sometable where somefield=:someparam');
  ZQuery1.Open; //to use SQL commands that do not have results (like insert, update, delete), use ZQuery1.ExecSQL;
Sorry by my poor english.

Atenciosamente,

Ezequiel Lage
lagezq@gmail.com

xinyiman

  • Hero Member
  • *****
  • Posts: 1528
Re: Gestire i database access con lazzarus
« Reply #2 on: September 13, 2012, 05:43:09 pm »
Ciao nanny, per assistenza in italiano devi andare su www.lazaruspascal.it qui si parla in inglese!
Ubuntu and Mint
Lazarus: 1.2.6
FPC: 2.6.4

wylton

  • New member
  • *
  • Posts: 33
Re: Gestire i database access con lazzarus
« Reply #3 on: October 27, 2013, 11:49:45 am »
你好, 欢迎你加入到www.fpccn.org,  全中文哦。
你可以进qq群146204。

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus