MariaDB RS to Temporary Table

Post Reply
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

MariaDB RS to Temporary Table

Post by fraxzi »

Hi All,

i've been looking our threads related to this but none I found..

I am looking for a way to save oRS to Table (not as .dbf) in MariaDB.. How to do this :?:

any :idea:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: MariaDB RS to Temporary Table

Post by vilian »

Hi Fraxzi,


I think you can do something like this:

Code: Select all

aValues  :=  oCn:QueryResult("SELECT * FROM yourtable") 
oCn:Insert("newtable",,aValues)
 
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: MariaDB RS to Temporary Table

Post by fraxzi »

Hi Vilian,

Thanks! I will try this. Let you know.

:wink:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: MariaDB RS to Temporary Table

Post by Maurizio »

I use

oServer:Execute( 'CREATE TABLE tmp_1234 AS select * FROM yourtable ')

Maurizio
www.nipeservice.com
Post Reply