Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql query

Status
Not open for further replies.

businessjack

Programmer
Jan 14, 2005
2
US
how do I write the SQL query that I would use to input data into table
 
If you want to load data from a file into a table, you would use something like:
[tt]
LOAD DATA INFILE 'c:/data/file1.csv'
INTO TABLE tbl1
[/tt]
To insert data directly, you could use something like:
[tt]
INSERT tbl1 (fld1,fld2)
VALUES ('abc',123),('def',456)

However, it's not always that simple, depending on your situation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top