Article View: borland.public.cppbuilder.database.ado
Article #2995Temporary Table
From: Guilherme
Date: Fri, 17 Jan 2003 20:04
Date: Fri, 17 Jan 2003 20:04
16 lines
1469 bytes
1469 bytes
I need create a temporary table and insert some values. I can create this
table, but I can�t insert values. What�s the problem ?
I use Mysql.
Thanks
AnsiString sql = "CREATE TEMPORARY TABLE test(a varchar(20))";
ADOConnection1->Execute(sql,cmdText, TExecuteOptions() <<
eoExecuteNoRecords);
sql = "INSERT INTO test values('gas')";
ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add(sql);
ADOQuery1->ExecSQL();
sql = "SELECT * from test";
ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add(sql);
ADOQuery1->Open();
Technical Details
Message-ID:
<3e28548c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,79184f81902f5235,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-01-17 11:09:42 PST Reply-To: "Guilherme" <guilherme@ueasistemas.com.br> From: "Guilherme" <guilherme@ueasistemas.com.br> Newsgroups: borland.public.cppbuilder.database.ado Subject: Temporary Table Date: Fri, 17 Jan 2003 17:04:02 -0300 Lines: 18 Organization: UEA X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 200.165.3.252 Message-ID: <3e28548c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1042830476 200.165.3.252 (17 Jan 2003 11:07:56 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail