How to load a CSV file into AltibseHow does database indexing work?How can I prevent SQL injection in PHP?How to list the tables in a SQLite database file that was opened with ATTACH?How to return only the Date from a SQL Server DateTime datatypeHow to concatenate text from multiple rows into a single text string in SQL server?Save PL/pgSQL output from PostgreSQL to a CSV fileHow do I UPDATE from a SELECT in SQL Server?How to query MongoDB with “like”?How do I import an SQL file using the command line in MySQL?SQL Server Insert Statement From a CSV File
1, 2, 4, 8, 16, ... 33?
Should the average user with no special access rights be worried about SMS-based 2FA being theoretically interceptable?
My Project Manager does not accept carry-over in Scrum, Is that normal?
How to create fractional SI units (SI...sqrts)?
What are the consequences of high orphan block rate?
How to justify a team increase when the team is doing good?
Reorder a matrix, twice
Why weren't the Death Star plans transmitted electronically?
Do we have any particular tonal center in mind when we are NOT listening music?
Pi Zero Work With Embedded WIFI And Cellular USB Modem
Clear text passwords in Unix
Is there a recurrence relation which has no closed formula?
Is it a good idea to leave minor world details to the reader's imagination?
A famous scholar sent me an unpublished draft of hers. Then she died. I think her work should be published. What should I do?
Golf (6-card) Golf!
Why does (inf + 0j)*1 evaluate to inf + nanj?
Hangman Game (YAHG)
Excel Solver linear programming - Is it possible to use average of values as a constraint without #DIV/0! errors or sacrificing linearity?
Why are there two fundamental laws of logic?
How can this Stack Exchange site have an animated favicon?
Labview vs Matlab??Which one better for image processing?
Does the Way of Shadow monk's Shadow Step feature count as a magical ability?
Is differentiation as a map discontinuous?
practicality of 30 year fix mortgage at 55 years of age
How to load a CSV file into Altibse
How does database indexing work?How can I prevent SQL injection in PHP?How to list the tables in a SQLite database file that was opened with ATTACH?How to return only the Date from a SQL Server DateTime datatypeHow to concatenate text from multiple rows into a single text string in SQL server?Save PL/pgSQL output from PostgreSQL to a CSV fileHow do I UPDATE from a SELECT in SQL Server?How to query MongoDB with “like”?How do I import an SQL file using the command line in MySQL?SQL Server Insert Statement From a CSV File
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have an extremely simple altibase database with only 1 table, the problem is i can't figure out how to load the data into the database.
As far as i am aware altibase uses the iLoader tool, so the following code should work but instead throws a syntax error. It does not specify where the error is.
CREATE TABLE SentimentData (
FinalScore DECIMAL(10,4),
maxPosScore DECIMAL(9,3),
maxNegScore DECIMAL(9,3),
commentID char(10)
);
iloader in [-T SentimentData] [-d /home/cory/SentimentData/2005/RC_2005-12.sentiment] [-rule csv];
The create table statement works perfectly i have just included it to show how the table is formatted if this is important.
To my knowledge, the iLoader line should import the data into the Table SentimentData, from the specified CSV file.
I have also tried the bulkinsert command and this gives the same error, a syntax error without specifying where the error actually is.
BULK INSERT SentimentData
FROM '/home/cory/SentimentData/2005/RC_2005-12.sentiment'
WITH
(
FIELDTERMINATOR = ' ', --field delimiter (tab)
ROWTERMINATOR = 'n', --next row is a new CSV line
);
Is there a different command I am missing in Altibase I am missing or have I just misread the manual somewhere?
sql isql
add a comment
|
I have an extremely simple altibase database with only 1 table, the problem is i can't figure out how to load the data into the database.
As far as i am aware altibase uses the iLoader tool, so the following code should work but instead throws a syntax error. It does not specify where the error is.
CREATE TABLE SentimentData (
FinalScore DECIMAL(10,4),
maxPosScore DECIMAL(9,3),
maxNegScore DECIMAL(9,3),
commentID char(10)
);
iloader in [-T SentimentData] [-d /home/cory/SentimentData/2005/RC_2005-12.sentiment] [-rule csv];
The create table statement works perfectly i have just included it to show how the table is formatted if this is important.
To my knowledge, the iLoader line should import the data into the Table SentimentData, from the specified CSV file.
I have also tried the bulkinsert command and this gives the same error, a syntax error without specifying where the error actually is.
BULK INSERT SentimentData
FROM '/home/cory/SentimentData/2005/RC_2005-12.sentiment'
WITH
(
FIELDTERMINATOR = ' ', --field delimiter (tab)
ROWTERMINATOR = 'n', --next row is a new CSV line
);
Is there a different command I am missing in Altibase I am missing or have I just misread the manual somewhere?
sql isql
So i can't delete the question but i have figured out the answer so i'll note it here just incase anyone else runs into the same issues i had. iLoader does not run through altibase as i was led to believe (something you'd think would be mentioned in the manuals) but must be run separately by loading the Altibase/bin/iloader file (default location). Here the iLoader commands are run and then the data can be worked with through altibase itself.
– me910
Apr 3 at 15:45
add a comment
|
I have an extremely simple altibase database with only 1 table, the problem is i can't figure out how to load the data into the database.
As far as i am aware altibase uses the iLoader tool, so the following code should work but instead throws a syntax error. It does not specify where the error is.
CREATE TABLE SentimentData (
FinalScore DECIMAL(10,4),
maxPosScore DECIMAL(9,3),
maxNegScore DECIMAL(9,3),
commentID char(10)
);
iloader in [-T SentimentData] [-d /home/cory/SentimentData/2005/RC_2005-12.sentiment] [-rule csv];
The create table statement works perfectly i have just included it to show how the table is formatted if this is important.
To my knowledge, the iLoader line should import the data into the Table SentimentData, from the specified CSV file.
I have also tried the bulkinsert command and this gives the same error, a syntax error without specifying where the error actually is.
BULK INSERT SentimentData
FROM '/home/cory/SentimentData/2005/RC_2005-12.sentiment'
WITH
(
FIELDTERMINATOR = ' ', --field delimiter (tab)
ROWTERMINATOR = 'n', --next row is a new CSV line
);
Is there a different command I am missing in Altibase I am missing or have I just misread the manual somewhere?
sql isql
I have an extremely simple altibase database with only 1 table, the problem is i can't figure out how to load the data into the database.
As far as i am aware altibase uses the iLoader tool, so the following code should work but instead throws a syntax error. It does not specify where the error is.
CREATE TABLE SentimentData (
FinalScore DECIMAL(10,4),
maxPosScore DECIMAL(9,3),
maxNegScore DECIMAL(9,3),
commentID char(10)
);
iloader in [-T SentimentData] [-d /home/cory/SentimentData/2005/RC_2005-12.sentiment] [-rule csv];
The create table statement works perfectly i have just included it to show how the table is formatted if this is important.
To my knowledge, the iLoader line should import the data into the Table SentimentData, from the specified CSV file.
I have also tried the bulkinsert command and this gives the same error, a syntax error without specifying where the error actually is.
BULK INSERT SentimentData
FROM '/home/cory/SentimentData/2005/RC_2005-12.sentiment'
WITH
(
FIELDTERMINATOR = ' ', --field delimiter (tab)
ROWTERMINATOR = 'n', --next row is a new CSV line
);
Is there a different command I am missing in Altibase I am missing or have I just misread the manual somewhere?
sql isql
sql isql
asked Mar 28 at 17:36
me910me910
11 silver badge1 bronze badge
11 silver badge1 bronze badge
So i can't delete the question but i have figured out the answer so i'll note it here just incase anyone else runs into the same issues i had. iLoader does not run through altibase as i was led to believe (something you'd think would be mentioned in the manuals) but must be run separately by loading the Altibase/bin/iloader file (default location). Here the iLoader commands are run and then the data can be worked with through altibase itself.
– me910
Apr 3 at 15:45
add a comment
|
So i can't delete the question but i have figured out the answer so i'll note it here just incase anyone else runs into the same issues i had. iLoader does not run through altibase as i was led to believe (something you'd think would be mentioned in the manuals) but must be run separately by loading the Altibase/bin/iloader file (default location). Here the iLoader commands are run and then the data can be worked with through altibase itself.
– me910
Apr 3 at 15:45
So i can't delete the question but i have figured out the answer so i'll note it here just incase anyone else runs into the same issues i had. iLoader does not run through altibase as i was led to believe (something you'd think would be mentioned in the manuals) but must be run separately by loading the Altibase/bin/iloader file (default location). Here the iLoader commands are run and then the data can be worked with through altibase itself.
– me910
Apr 3 at 15:45
So i can't delete the question but i have figured out the answer so i'll note it here just incase anyone else runs into the same issues i had. iLoader does not run through altibase as i was led to believe (something you'd think would be mentioned in the manuals) but must be run separately by loading the Altibase/bin/iloader file (default location). Here the iLoader commands are run and then the data can be worked with through altibase itself.
– me910
Apr 3 at 15:45
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403771%2fhow-to-load-a-csv-file-into-altibse%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403771%2fhow-to-load-a-csv-file-into-altibse%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So i can't delete the question but i have figured out the answer so i'll note it here just incase anyone else runs into the same issues i had. iLoader does not run through altibase as i was led to believe (something you'd think would be mentioned in the manuals) but must be run separately by loading the Altibase/bin/iloader file (default location). Here the iLoader commands are run and then the data can be worked with through altibase itself.
– me910
Apr 3 at 15:45