Write data to MySql

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

elias41
Posts: 25
Joined: Mon Jun 10, 2013 1:20 am

Write data to MySql

Postby elias41 » Wed Feb 11, 2015 6:39 am

Hi,

I would like to write data to a MySQl workbench table without destroying its structure.

I tried the following:

Code: Select all

wfsave(type=odbc) dsn=MYDSN;uid=USERNAME;pwd=PASSWORD;database=MYDATABASE "insert into estimates (field1, field2) values ('",date,"',",value,")"
However, this fills the whole table and changes field data types.

Is there a controlled way (preferably in SQL like an insert) to insert values into a MySQL database besides the workaround in http://forums.eviews.com/viewtopic.php?f=3&t=29. If not I fear to have imlpement it in form of the suggested workaround :(

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13600
Joined: Tue Sep 16, 2008 5:38 pm

Re: Write data to MySql

Postby EViews Gareth » Wed Feb 11, 2015 9:08 am

Unfortunately not.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests