Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the purpose of using timestamp data type?

920


What is identity in mysql?

986


What is use command in mysql?

1042


What is RMS Migrations

2395


What is save point in mysql?

959


How to copy data from one server to another using php?

1046


How do I stop a mysql command?

992


How do I show all mysql databases?

962


How to escape special characters in sql statements?

976


What is the data source name for mysql?

953


SQL is not case sensitive. DELETE is the same as delete. State Whether True or False?

1013


Why mysql is open source?

918


What are enums used for in mysql?

1003


What are ddl statements in mysql?

1059


What are the ways in which you can retrieve data in the result set of mysql using php?

988