473,379 Members | 1,245 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

perl/awk dealing with mysql. request/help

130 100+
hello all

i yet to start this project. i need some edvice.

i want to insert to my db

few fix words from a .txt file

what is the best language to write it? awk or perl ? i can write it in php but i know the first languages are better for this kind of job, but i am not sure of how to send the data to mysql with them

can anyone post a snippt please
the file.txt looks like that :

date spoken language time name
2007-10-24 english 20.00 name
2007-10-24 english 20.00 another_name
Nov 14 '07 #1
2 1364
numberwhun
3,509 Expert Mod 2GB
hello all

i yet to start this project. i need some edvice.

i want to insert to my db

few fix words from a .txt file

what is the best language to write it? awk or perl ? i can write it in php but i know the first languages are better for this kind of job, but i am not sure of how to send the data to mysql with them

can anyone post a snippt please
the file.txt looks like that :

date spoken language time name
2007-10-24 english 20.00 name
2007-10-24 english 20.00 another_name
Although you can write programs in AWK, there is no database interface in AWK that I know of. My suggestion, if you want to easily interact with a database is to use Perl. You will want to read up on the DBI module for that.

Regards,

Jeff
Nov 14 '07 #2
Amzul
130 100+
thanks jeff but i belive i found a better way

it can all be done via mysql

so i just need to write a small script in php that create the right query. thanks for your time
Nov 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: GC | last post by:
Hi, I'm looking for a solution to capture the data on a web page with 2 buttons, send & receive threads of this URL http://atlantis.b-rail.be:8880/atlantis/SilverStream/Pages/PM_GalileoLog.html....
1
by: Mavis | last post by:
Hi, I'm trying to use a simple form to select by which column I will display output from a MySQL database. I'd like to display based on ORDER BY and select Written, Average, etc. I know the...
0
by: John Ntow | last post by:
I have a binary distribution of MySQL 4.0.20 installed in /usr/local/mysql. Therefore, the only libmysqlclient file I have is libmysqlclient.a (static library). And also, Perl:DBI already...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
1
by: smsabu2002 | last post by:
Hi, I am facing the build problem while installing the DBD-MySql perl module (ver 2.9008) using both GCC and CC compilers in HP-UX machine. For the Build using GCC, the compiler error is...
3
by: pc | last post by:
hi all, I have been blessed with the task of writing a web based database representing the state of our globally installed isam databases. there are basically four steps in setting this up: ...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
11
by: bthalapathi | last post by:
I have written a script to connect the mysql db #!/usr/bin/perl -w use DBI; #definition of variables $db="MYTEST"; $host="localhost"; $user="root"; $password="rootpass";
0
by: Scotsman | last post by:
Hi All I have a sticky problem! Its a LEFT JOIN sql statement which works fine in MySQL but not when called in Perl. Any ideas? I have 2 tables: campaigns & companies. I'm trying to join them...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.