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
운영게시판
최근게시물
Oracle Q&A 5571 게시물 읽기
No. 5571
살려주세요. 에러메세지 해석이 안됩니다.
작성자
편부열
작성일
2001-06-28 17:38
조회수
1,248

자바로 JDBC하던중에 에러가 났습니다. SQL문은 아래와 같습니다.

 

String sql1="insert into customer(user_id,user_passwd,user_name,user_tel,user_mobile,user_email,user_address,zipcode,user_sex,user_jumin) values( '"+id+"','"+passwd+"','"+name+"','"+phone+"','"+handphone+"','"+email+"','"+address+"','"+pst+"','"+sex+"','"+ssn+"')";

 

위의 쿼리 문을 executeUpdate(sql1)문을 이용해서 oracle DB로 insert할려고 하니까

column이 너무 길다는 에러메세지가 나오더군요.(혹시 sql문이 잘못 된건 아니지요?)

그래서 두개로 sql문을 나누었어요. 아래처럼요.

 

String sql1="insert into customer(user_id,user_passwd,user_name,user_tel,user_mobile) values('"+id+"','"+passwd+"','"+name+"','"+phone+"','"+handphone+"')";

 

String sql2="insert into customer(user_email,user_address,zipcode,user_sex,user_jumin) values('"+email+"','"+address+"','"+pst+"','"+sex+"','"+ssn+"')";

이렇게 했더니 아래와 같은 메세지가 나오더군요.

 

에러번호는 ORA-01400: NULL을 ("SCOTT"."CUSTOMER"."USER_EMAIL") 안에 삽입할 수 없습니다. 라는 메세지가 나오면서 주루룩 에러메세지가 나오는 군요.

어케처리해야 하나요. 제발 도와 주세요. customer는 테이블명,user_email은 칼럼명입니다.

참고로 위에있는 id,passwd,name,phone..등은 변수입니다.변수 설정은 아래와 같습니다.

String id="aa",passwd="123",name="bbb",ssn1,ssn2,pst1,pst2;

String address="서울",phone="018",handphone="018-229-

3261",email="b@hanmail.net",addr;

String ssn,pst="eee",sex;필요한 것만 값을 넣었습니다.

[Top]
No.
제목
작성자
작성일
조회
5581pro*c 에서 makefile 만들기입니다....
zerox
2001-06-29
3078
5593┕>Re: pro*c 에서 makefile 만들기입니다....
민처리
2001-06-30 15:10:57
1730
5574한달전 날짜를 구하는 방법???
답답이
2001-06-28
2616
5577┕>Re: 한달전 날짜를 구하는 방법???
yappie
2001-06-28 19:30:06
2049
5573svrmgrl 구동시
이현호
2001-06-28
1732
5575┕>Re: svrmgrl 구동시
herrchen
2001-06-28 18:50:46
3083
5571살려주세요. 에러메세지 해석이 안됩니다.
편부열
2001-06-28
1248
5572┕>Re: 살려주세요. 에러메세지 해석이 안됩니다.
민처리
2001-06-28 18:06:54
1370
5570win2000+oracle8i+apache+php...설정에서...
jlonglee
2001-06-28
1169
5590┕>Re: win2000+oracle8i+apache+php...설정에서...
아마도
2001-06-29 18:46:28
1076
5568sqlloader
윤진수
2001-06-28
1513
5606┕>Re: sqlloader
최성준
2001-07-02 10:03:38
2605
5567tnsnames.ora 설정에서..
으나
2001-06-28
981
5576┕>Re: tnsnames.ora 설정에서..
herrchen
2001-06-28 19:00:37
1705
5578 ┕>저.. 죄송하지만..
으나
2001-06-28 19:52:16
1101
5579  ┕>Re: 저.. 죄송하지만..
김이준
2001-06-29 00:51:42
1016
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.020초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다