473,378 Members | 1,605 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,378 software developers and data experts.

importing file in phpmyadmin

presently i have a table in which there are records and the fields are
slno (this is a primary key auto increment), firstname, lastname,
email, date(which inserts as a date format) these records are presenty
being inserting from a html form. this works fine.

i have additional data that is on paper and this paper data needs to
be added to this table and the are numerous records that have to be
inserted so executing an sql query from myphpadmin is not a good
option. due to this i would lke to add the paper data first into a
text file or csv file and then use the Import feature in phpyadmin so
that this new data is added to the existing table along with the data
that is already inserted through the form.

please advice
1. if a text file or csv file is preferrable.
2. in what format should the data be entered in the case of
a) text file & ) csv file

should i mention slno, firstname, lastname, email, date
on top of the file and add data accordingly.

also as slno is auto increment do i need to specify the numeric number
or is it optional and in case of date do i need to follow the same
format as it is for previous records while entering the data manually
into the text or csv file.

thanks.
Jan 24 '08 #1
1 1498
Sudhakar wrote:
presently i have a table in which there are records and the fields are
slno (this is a primary key auto increment), firstname, lastname,
email, date(which inserts as a date format) these records are presenty
being inserting from a html form. this works fine.

i have additional data that is on paper and this paper data needs to
be added to this table and the are numerous records that have to be
inserted so executing an sql query from myphpadmin is not a good
option. due to this i would lke to add the paper data first into a
text file or csv file and then use the Import feature in phpyadmin so
that this new data is added to the existing table along with the data
that is already inserted through the form.

please advice
1. if a text file or csv file is preferrable.
2. in what format should the data be entered in the case of
a) text file & ) csv file

should i mention slno, firstname, lastname, email, date
on top of the file and add data accordingly.

also as slno is auto increment do i need to specify the numeric number
or is it optional and in case of date do i need to follow the same
format as it is for previous records while entering the data manually
into the text or csv file.

thanks.
Check comp.databases.mysql. There are database utilities and commands
you can use to do this.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jan 25 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: steve | last post by:
Hi, I have a 80 meg dump file created with mysqldump. I need to import it into a mysql db on Windows. On linux, I say "shell>mysql dbname < dumpfilename" But that does not work on Windows. ...
4
by: Nick Kerzman via MySQLMonster.com | last post by:
Any assistance would be greatly appreciated. I'm relatively new to working with MySQL. I exported my DB with phpMyAdmin 2.6.0-pl3 running MySQL 4.1.7 I'm trying to import it with phpMyAdmin...
4
by: news | last post by:
Our production database in an exported textfil runs about 60 MB. Compressed that's about 9 MB. I'm trying to import the export into another machine running FC3 and mySQL 11.18, and it appears as...
1
by: metrix007 | last post by:
hello, i have been using phpmyadmin, and was trying to import a text file, which is at www.secmaritsolutions.com/d.txt into a database, which has 4 fields, each varchar with a length of 100,...
2
by: Jean Bidule | last post by:
Hi, I installed phpmyadmin to test my site on my homecomputer. The table i want to "upload" in my mysql table is about 5 Mb but in phpMyadmin the maximum size is 2048 kb. Where can I change...
0
by: st.frey | last post by:
I've got a problem with importing chinese characters into a mysql-table and have read several mailings but didn't find a solution. i have a utf-8 text file that contains chinese characters. the...
1
by: Toine | last post by:
Hello, I want to import a csv file into my table. However, I need to empty the table before I do this. The problem is, I only see an option to "replace" the data. Is there a way to empty a table...
3
kickingthehabbit
by: kickingthehabbit | last post by:
Hi All new to all of this I just downloaded reactor server. everything works fine except Mysql - SQL import files. I am trying to import file createdb.sql I open DB and try and import with...
2
by: runway27 | last post by:
hi i need to import data into a table in mysql from phpmyadmin using the Import option instead of using insert statements. for example if the table has 10 fields should the file that needs to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.