473,769 Members | 3,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1536
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*******@attgl obal.net
=============== ===

Jan 25 '08 #2

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

Similar topics

1
3072
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. Importing via phpmyadmin is not possible either since we are limited to 2 Meg file size. Any ideas? Please help.
4
2227
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 2.5.7-pl1 running MySQL 4.0.20 Is this possible? I seem to be getting this error: MySQL said:
4
12726
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 though the file may be too big! When I try to do it via command line: mysql -u root --host=localhost printing < ./printing.txt It eventually errors out with a "syntax error on line X" and only about
1
1396
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, comma delimited, however it seems to input into a strange order, results are at www.secmaritsolutions.com/pro.php i chose comma for the field terminator, and left fields enclosed by blank, and left the newline as the default as i was on a windows
2
2297
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 the maximum size of text files in PhpMyAdmin ? Somewhere in "config.inc.php" ? Thank you very much
0
3714
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 table where i want to import the data using "load data local infile" has collation utf8_unicode_ci. but after the import is done, the chinese characters are converted into so strange characters. to show the chinese symbols in a php-script i use...
1
5539
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 AND simultaneously import a csv? I know this is possible with the mysqlimport command (with the --delete argument), but I'm not if it's possible in phpMyAdmin. I'm using phpMyAdmin 2.9.0.2 and MySQL 4.1.10
3
4339
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 SQL when I try and import it comes back with
2
1096
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 be uploaded have the same field names on top and the associated values. ideally should this be as an excel or csv file or text file.
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.