Recent

Author Topic: Gestire i database access con lazzarus  (Read 13461 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

  • Guest
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;

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
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!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

wylton

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

 

TinyPortal © 2005-2018