MariaDB RS to Temporary Table

MariaDB RS to Temporary Table

Postby fraxzi » Thu Sep 06, 2018 12:54 am

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
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: MariaDB RS to Temporary Table

Postby vilian » Thu Sep 06, 2018 1:18 am

Hi Fraxzi,


I think you can do something like this:

Code: Select all  Expand view

aValues  :=  oCn:QueryResult("SELECT * FROM yourtable")
oCn:Insert("newtable",,aValues)
 
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: MariaDB RS to Temporary Table

Postby fraxzi » Thu Sep 06, 2018 5:55 am

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
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: MariaDB RS to Temporary Table

Postby Maurizio » Thu Sep 06, 2018 7:05 am

I use

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

Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Marc Venken and 101 guests