database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
ㆍSybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Sybase Q&A 3990 게시물 읽기
No. 3990
sybase iq LOAD 옵션중..
작성자
jip
작성일
2010-01-29 10:22
조회수
9,918

sybase iq 를 쓰고 있습니다.

ASCII 로 Load 를 하고 있는데요

LOAD ~~~ Column     ASCII(8)    NULL(BLANK)

NULL(BLANK) 옵션이 무엇인지 해서요

sybase 초보라서 ....

이 글에 대한 댓글이 총 1건 있습니다.

매뉴얼 내용입니다.

The NULL portion of the column-spec indicates how to treat certain input
values as NULL values when loading into the table column. These characters
can include BLANKS, ZEROS, or any other list of literals you define. When
specifying a NULL value or reading a NULL value from the source file, the
destination column must be able to contain NULLs.
ZEROS are interpreted as follows: the cell is set to NULL if (and only if) the
input data (before conversion, if ASCII) is all binary zeros (and not character
zeros).
• If the input data is character zero, then:
a NULL (ZEROS) never causes the cell to be NULL.
b NULL ('0') causes the cell to be NULL.
• If the input data is binary zero (all bits clear), then:
a NULL (ZEROS) causes the cell to be NULL.
b NULL ('0') never causes the cell to be NULL.

For example, if your LOAD statement includes col1 date('yymmdd')
null(zeros) and the date is 000000, you receive an error indicating that
000000 cannot be converted to a DATE(4). To get load to insert a NULL value
in col1 when the data is 000000, write the NULL clause as null('000000'),
or modify the data to equal binary zeros and use NULL(ZEROS).
If the length of a VARCHAR cell is zero and the cell is not NULL, you get a
zero-length cell. For all other data types, if the length of the cell is zero, Sybase
IQ inserts a NULL. This is ANSI behavior. For non-ANSI treatment of zerolength
character data, set the Non_Ansi_Null_Varchar database option.

세지아빠(sejiappa)님이 2010-01-29 11:07에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
3993최근글 가져오기.. [1]
양은숙
2010-02-02
7852
3992프로시져 호출 할 때의 인수처리 및 컴파일 [4]
프로시져..
2010-01-31
11369
3991sam파일 추출 시 trim처리.. [2]
스페
2010-01-29
9504
3990sybase iq LOAD 옵션중.. [1]
jip
2010-01-29
9918
3989sybase 추출 시 옵션 질문입니다.. [4]
2010-01-28
8309
3988order by 사용시 결과 내용이 틀립니다.
박상진
2010-01-26
7255
3987sybase union all 쿼리 좀 봐주세요..
최선기
2010-01-25
9668
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.018초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다