ginsonic
asked on
Dbf 2 MySql table
I need to move fields from a dbf table to MySql for use on my server.
Any suggestions ?
Please codes or freeware components .
Any suggestions ?
Please codes or freeware components .
ASKER
Can you help me with a sample project ?
Perhaps a bit of SQL:
Select MyTableDbf.* INTO MyNewTable
FROM MyTableDbf;
Best Regards.
Marcos.
Select MyTableDbf.* INTO MyNewTable
FROM MyTableDbf;
Best Regards.
Marcos.
ASKER
I don't wish to make a sql copy of my dbf table.
I just wish to copy one field into another MySqol field and all others left fields from dbf into a single MySql field.
Dbf MySql
Field1 Field1
Field2+' '+
Field3+' '+
Field4 Field2
I just wish to copy one field into another MySqol field and all others left fields from dbf into a single MySql field.
Dbf MySql
Field1 Field1
Field2+' '+
Field3+' '+
Field4 Field2
ASKER
Dbf MySql
Field1 Field1
Field2+' '+
Field3+' '+
Field4 Field2
Field1 Field1
Field2+' '+
Field3+' '+
Field4 Field2
ASKER
I found next link for this conversion:
http://ae.inc.ru/dbf2mysql_src.php3
But I need just couple line to copy a field into MySql first field and others fields into the second MySql field.
300 points for this.
http://ae.inc.ru/dbf2mysql_src.php3
But I need just couple line to copy a field into MySql first field and others fields into the second MySql field.
300 points for this.
with local-sql
for create
create ::mySQL_Alias::tablename
as
select fieldname1||fieldname2, MaybeMoreFields
from ::dbf_alias::tablename
for copy
insert into ::mySQL_Alias::tablename (MayBeFieldList)
select fieldname1||fieldname2, MaybeMoreFields
from ::dbf_alias::tablename
meikl ;-)
for create
create ::mySQL_Alias::tablename
as
select fieldname1||fieldname2, MaybeMoreFields
from ::dbf_alias::tablename
for copy
insert into ::mySQL_Alias::tablename (MayBeFieldList)
select fieldname1||fieldname2, MaybeMoreFields
from ::dbf_alias::tablename
meikl ;-)
ASKER
I still don't understand how to do that.
I have next MySql structure table :
CREATE TABLE nuke_encyclopedia_text (
tid int(10) NOT NULL auto_increment,
eid int(10) NOT NULL default '0',
title varchar(255) NOT NULL default '',
text text NOT NULL,
counter int(10) NOT NULL default '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;
In dbf I have next fields: 'Name', 'Width','Genre'( just for example ).
I wish to store name into title field and 'Width'+'Genre' into text field.
Increased to 300 points for working sample.
I have next MySql structure table :
CREATE TABLE nuke_encyclopedia_text (
tid int(10) NOT NULL auto_increment,
eid int(10) NOT NULL default '0',
title varchar(255) NOT NULL default '',
text text NOT NULL,
counter int(10) NOT NULL default '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;
In dbf I have next fields: 'Name', 'Width','Genre'( just for example ).
I wish to store name into title field and 'Width'+'Genre' into text field.
Increased to 300 points for working sample.
insert into ::mySQL_alias::nuke_encycl opedia_tex t (title,text) select name, width||genre from ::dbf_alias::dbf_tablename
I'm working on the sample application ...
ASKER
Wait then :)
Untill then I copy my dbf into a new dbf table where the fields use my rules and then with dbf2mysql program I convert the table.
But I still preffer a proffesional way ( a directly conversion ).
Untill then I copy my dbf into a new dbf table where the fields use my rules and then with dbf2mysql program I convert the table.
But I still preffer a proffesional way ( a directly conversion ).
ASKER
MeSSiah_ , any news there ?
ASKER
I will ask to delete this question
ginsonic asked to have this question closed. If there are no objections I will
PAQ and refund the points
in 72 hours.
PAQ and refund the points
in 72 hours.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
two aliases pointed to the different databases
is needed, and a bit code,
thats all
meikl ;-)