NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
using PhpEd's Regular Expressions


Joined: 23 Jul 2010
Posts: 1
Reply with quote
I've got no experience about PhpED's regular expressions.
So I need help.

I have a csv file.
I want to make this to sql file.

I got
Quote:
^.*,.*,.*,.*,.*,.*,.*$

does well find my datas on csv file.

But how to change this to INSERT statement?
In other expressions
Quote:
INSERT INTO zipcode_2010 VALUES ('^1','^2','^3','^4','^5','^6','^7');

is right.

How to make csv file's eachdata to those INSERT statement?
I want to know.

Plz, Help me. Have a great day.
View user's profileFind all posts by lancoSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
Do you use phpMyAdmin by any chance? You can import a CSV file using it.

Even if you don't use phpMyAdmin, and assuming you use MySQL, you can use mysqlimport.
View user's profileFind all posts by simshaunSend private message
using PhpEd's Regular Expressions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic