Sponsored Content
Top Forums UNIX for Dummies Questions & Answers data is seen as NULL after loading into database Post 302336453 by sheen on Wednesday 22nd of July 2009 07:27:49 AM
Old 07-22-2009
hello scottn,
i have made a wheat database.which contain different tables each tables contain different data for example we say there is table called 'breakpoint' so i have converted this table into sql format like
insert into breakpoint(id,name,fractionlength) values(1,'1AL-1',);
insert into breakpoint(id,name,fractionlength) values(2,'1AL-2',);
insert into breakpoint(id,name,fractionlength) values(3,'1AL-3',);
insert into breakpoint(id,name,fractionlength) values(4,'1AL-4',);
insert into breakpoint(id,name,fractionlength) values(5,'1AL-5',);
insert into breakpoint(id,name,fractionlength) values(6,'1AS-1',);

on sql server i have created table breakpoint using command
mysql>CREATE TABLE breakpoint(id int,name char(20),fractionlength float);

now i want to load values to this tables so i uses a command
mysql>LOAD DATA LOCAL INFILE '/path/breakpoint.txt' into table breakpoint;

when i use this command instead of loading values into tables it gives NULL in each column.

Please guide me where i m going wrong.

Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script for Data loading in Oracle

Hi All I am new to unix. I need a shell script to load a datafile in to oracle. I already have a control file, and data file. all I need is if i execute the shell it must load the data using the ctl file to table. Control file : PAY0001.ctl Datafile : mon_grs_det.dat log file :... (3 Replies)
Discussion started by: raghuraja_r
3 Replies

2. Shell Programming and Scripting

Problem of Data Loading....

i am studying a script which is used for data loading. it has functions which deletes all the existing data before loading and then loads new fresh data. but i am stuck up at function Replace into table ( col 1,col 2....) Does this signify All Inserts. (1 Reply)
Discussion started by: ankitgupta
1 Replies

3. Shell Programming and Scripting

Loading values into a MYSQL database

Where to start? Ok, I need to pick up a Worldpay exchange rates file from a url such as: https://select.worldpay.com/wcc/info?op=rates&instId=12345&op=rates-today the http response returns a exchange rates file with content-type "text/plain" content as below: #Exchange rates for... (2 Replies)
Discussion started by: kshelluser
2 Replies

4. UNIX for Dummies Questions & Answers

Howto capture data from rs232port andpull data into oracle database-9i automatically

Hi, i willbe very much grateful to u if u help me out.. if i simply connect pbx machine to printer by serial port RS232 then we find this view: But i want to capture this data into database automatically when the pbx is running.The table in database will contain similar to this view inthe... (1 Reply)
Discussion started by: boss
1 Replies

5. Shell Programming and Scripting

unix script for loading a data from a file into database

Hi All, I am trying to load a data from a files in a particular directory to a database.. cd $SCC isql metdb >> ${LOGDATA}/LOAD.LOG < ! load from "${LDATA}/${FORM}.ld" insert into $LOADTABLE ! But it's showing the error "syntax error at line 46 : `<<' unmatched" Can u plz help me... (5 Replies)
Discussion started by: grajesh_955
5 Replies

6. Shell Programming and Scripting

Help with loading data from DB2 database to CSV file

Hi everyone!! I need help regarding this. How can we load data from DB2 Database tables into a Comma Separated File? I also have another Question? Using Shell scripting, Is it easy to read Data from a table or from a text file? It is very urgent for me. Please help me out guys. ... (1 Reply)
Discussion started by: ss3944
1 Replies

7. UNIX for Advanced & Expert Users

creating data loading script

asdfasdfasdfasdf??? (2 Replies)
Discussion started by: noorm
2 Replies

8. Programming

Loading Data in shared memory (C++)

I'll try to keep this short, but basically I need to figure out a way to load data in shared memory (this file will be called load.c) I will later access the data with a print.c program. The "data" is in the form of a student database that looks like this John Blakeman 111223333 560... (7 Replies)
Discussion started by: Mercfh
7 Replies

9. Shell Programming and Scripting

Loading data in oracle using shell scripts

Hi , I have a scenario, i have a directory where i receive around 14-15 files at a interval of 20-40 min not fixed, i want to write a unix scripts which invoke sqlldr command to load files into oracle automatically as soon as the file hit the directory. Any help will be appreciated. ... (4 Replies)
Discussion started by: guddu_12
4 Replies

10. Shell Programming and Scripting

How to avoid locks while loading database through UNIX script.?

Hi, I have the following requirement: I have load_cdr as main scriptwhich loads all the file records into vertica database through unix script. But there are two files which try to update same table..n thats y my script is getting failed... Can any1 give me some logic how to over come this... (6 Replies)
Discussion started by: gnnsprapa
6 Replies
YAF_CONFIG_INI(3)							 1							 YAF_CONFIG_INI(3)

The Yaf_Config_Ini class

INTRODUCTION
Yaf_Config_Ini enables developers to store configuration data in a familiar INI format and read them in the application by using nested object property syntax. The INI format is specialized to provide both the ability to have a hierarchy of configuration data keys and inher- itance between configuration data sections. Configuration data hierarchies are supported by separating the keys with the dot or period character ("."). A section may extend or inherit from another section by following the section name with a colon character (":") and the name of the section from which data are to be inherited. Note Yaf_Config_Ini utilizes the >> parse_ini_file() PHP function. Please review this documentation to be aware of its specific behav- iors, which propagate to Yaf_Config_Ini, such as how the special values of " TRUE", " FALSE", "yes", "no", and " NULL" are handled. CLASS SYNOPSIS
Yaf_Config_Ini Yaf_Config_Iniextends Yaf_Config_AbstractIteratorArrayAccessCountable Properties Methods o public Yaf_Config_Ini::__construct (string $config_file, [string $section]) o public void Yaf_Config_Ini::count (void ) o public void Yaf_Config_Ini::current (void ) o public void Yaf_Config_Ini::__get ([string $name]) o public void Yaf_Config_Ini::__isset (string $name) o public void Yaf_Config_Ini::key (void ) o public void Yaf_Config_Ini::next (void ) o public void Yaf_Config_Ini::offsetExists (string $name) o public void Yaf_Config_Ini::offsetGet (string $name) o public void Yaf_Config_Ini::offsetSet (string $name, string $value) o public void Yaf_Config_Ini::offsetUnset (string $name) o public void Yaf_Config_Ini::readonly (void ) o public void Yaf_Config_Ini::rewind (void ) o public void Yaf_Config_Ini::__set (string $name, mixed $value) o public array Yaf_Config_Ini::toArray (void ) o public void Yaf_Config_Ini::valid (void ) Inherited methods o abstractpublic mixed Yaf_Config_Abstract::get (string $name, mixed $value) o abstractpublic bool Yaf_Config_Abstract::readonly (void ) o abstractpublic Yaf_Config_Abstract Yaf_Config_Abstract::set (void ) o abstractpublic array Yaf_Config_Abstract::toArray (void ) PROPERTIES
o $_config - o $_readonly - EXAMPLES
Example #1 Yaf_Config_Ini(3)example This example illustrates a basic use of Yaf_Config_Ini for loading configuration data from an INI file. In this example there are configuration data for both a production system and for a staging system. Because the staging system configuration data are very similar to those for production, the staging section inherits from the production section. In this case, the decision is arbitrary and could have been written conversely, with the production section inheriting from the staging section, though this may not be the case for more complex situations. Suppose, then, that the following configuration data are contained in /path/to/config.ini: ; Production site configuration data [production] webhost = www.example.com database.adapter = pdo_mysql database.params.host = db.example.com database.params.username = dbuser database.params.password = secret database.params.dbname = dbname ; Staging site configuration data inherits from production and ; overrides values as necessary [staging : production] database.params.host = dev.example.com database.params.username = devuser database.params.password = devsecret <?php $config = new Yaf_Config_Ini('/path/to/config.ini', 'staging'); var_dump($config->database->params->host); var_dump($config->database->params->dbname); var_dump($config->get("database.params.username")); ?> The above example will output something similar to: string(15) "dev.example.com" string(6) "dbname" string(7) "devuser PHP Documentation Group YAF_CONFIG_INI(3)
All times are GMT -4. The time now is 08:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy