How to load data from a text file into a table?
Answer Posted / nithya
use SQL LOADER.
type in ur command prompt:
> sqlldr
> sqlldr userid=user/password@DB_INSTANCE_NAME
control=import.ctl log=import.log data=import.csv
where u hav to convert ur text file into comma seperated
file(.csv) and ur control file must be:
load data
infile call_list.csv //data file
append
into table bck_up // db table name
fields terminated by ','
optionally enclosed by'"'
trailing nullcols
(
name,num,num2 //columns in ur text file.
)
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Does mysql use tcp or udp?
What is horizontally scalable?
How does mysql clustering work?
How to Change a users password from MySQL prompt. Login as root. Set the password. Update privs.
How do I show all mysql databases?
Can python connect to mysql?
What is unique key in mysql?
What is difference between mongodb and mysql?
Is mysql good for large database?
What could be the reason that the mysql statement 'select avg (salary) from emp' generates an inaccurate output?
What port is mysql running on?
What is cast in mysql?
What is latest version of mysql?
Table - Products has number of products as below Productid ProductName 1 iPhone 2 iPad 3 BlackBerry Table - SalesPersonProduct has the below records Salespersonid productid S1 1 S1 2 S1 3 S2 1 S3 2 Write a SQL query that returns the total number of sold products
How can we get total number of records by query in mysql?