Search found 20 matches
- Sat Dec 19, 2015 5:20 pm
- Forum: Vertica Data Load
- Topic: Enabled Primary Key not reinforced in 7.2
- Replies: 3
- Views: 19626
Re: Enabled Primary Key not reinforced in 7.2
Vertica does not enforce PK while loading to enable fast data loads. you have to manually check for PK violations. Use this functions to check for violations. https://my.vertica.com/docs/7.2.x/HTML/index.htm#Authoring/SQLReferenceManual/Functions/VerticaFunctions/ANALYZE_CONSTRAINTS.htm?Highlight=an...
- Mon Oct 26, 2015 7:48 pm
- Forum: New to Vertica SQL
- Topic: initializing column to NULL in SELECT
- Replies: 7
- Views: 35482
Re: initializing column to NULL in SELECT
I think this dbvis tool takes :: to be a variable and pops up a window. When i "continue", it gives an error. So annoying!
[SELECT - 0 row(s), 0.009 secs] [Error Code: 4856, SQL State: 42601] [Vertica][VJDBC](4856) ERROR: Syntax error at or near "$1"
[SELECT - 0 row(s), 0.009 secs] [Error Code: 4856, SQL State: 42601] [Vertica][VJDBC](4856) ERROR: Syntax error at or near "$1"
- Sat Oct 24, 2015 4:17 pm
- Forum: New to Vertica SQL
- Topic: initializing column to NULL in SELECT
- Replies: 7
- Views: 35482
Re: initializing column to NULL in SELECT
This problem occurs when I run the code in DBVisualizer. ON VSQL it runs fine.
- Fri Oct 23, 2015 10:00 pm
- Forum: New to Vertica SQL
- Topic: initializing column to NULL in SELECT
- Replies: 7
- Views: 35482
initializing column to NULL in SELECT
I would like to initialize a column to NULL in select statement.
E.g.
Select
column1,
NULL :: timestamp as test_column,
NULL :: int as s_no,
column 2
from tablename;
Error: Syntax error at or near "$1"
How should I overcome this?
E.g.
Select
column1,
NULL :: timestamp as test_column,
NULL :: int as s_no,
column 2
from tablename;
Error: Syntax error at or near "$1"
How should I overcome this?
- Tue Sep 22, 2015 7:28 pm
- Forum: Vertica Data Load
- Topic: Loading data ending with \
- Replies: 1
- Views: 17610
Loading data ending with \
I have a tab delimited file and one of columns has data ending with \, which I believe is cause the data to be rejected.
1234 lodestone&text=\LOHDstohn\ Agency
How should I overcome this?
1234 lodestone&text=\LOHDstohn\ Agency
How should I overcome this?
- Fri Aug 14, 2015 2:07 pm
- Forum: Vertica Data Load
- Topic: Copying column which has both , and "
- Replies: 6
- Views: 25183
Re: Copying column which has both , and "
Name
ABC,12
Present"X"
Lets say I have these 2 data in the column. If I Enclosed it by ' " ' then my second record is rejected. If I don't do anything (file is csv) then my first record gets rejected.
ABC,12
Present"X"
Lets say I have these 2 data in the column. If I Enclosed it by ' " ' then my second record is rejected. If I don't do anything (file is csv) then my first record gets rejected.
- Thu Aug 13, 2015 9:38 pm
- Forum: Vertica Data Load
- Topic: Copying column which has both , and "
- Replies: 6
- Views: 25183
Copying column which has both , and "
I have a column in my data which has both , as well as ".
E.g. Abc,"xyz"
so I'm not able to load.
Enclosed by '"' isn't helping. How can I overcome this?
E.g. Abc,"xyz"
so I'm not able to load.
Enclosed by '"' isn't helping. How can I overcome this?