🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.pascal
Article #89691

Lazarus i SQLQuery.

#89691
From: Koriolan
Date: Sat, 31 Jul 2010 21:43
27 lines
767 bytes
Jak zmusi� SQLQuery do zmian ? Update, Insert itp.
Szuka�em po necie ale przyk�ady mi nie dzia��j�.
Nie chc� tu opisywa� co mi si� nie uda�o ale np.

==============
With SQLQuer ...

       UpdateSQL.Clear;  //Clear Update SQL Statement if Any
       UpdateSQL.Add('update pit_tmp_zm'); 
                   //
       UpdateSQL.Add('set kod_gl=''101010'' ');   //Create SQL
       UpdateSQL.Add('where pit_id= 10;'); 
            //
       ExecSQL;
       Edit; //Put Query in Edit(Update) Mode
       Post;
       ApplyUpdates; //Post and Apply Updates
       Close;
       SQLTrans1.CommitRetaining;
       ....

================

Nie dzia�a :-(
Generalnie czepia si�, �e nie ma SQL (jest Update) ExecSQL zamiast Open
te� nie chodzi :-(

Message-ID: <i31ucq$74m$2@speranza.aioe.org>
Path: polish.pugleaf.net!archive.newsdeef.eu!mbox2nntp-pl.comp.lang.pascal.mbox.zip!g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!news.mixmin.net!aioe.org!not-for-mail