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 5572 게시물 읽기
No. 5572
Re: 살려주세요. 에러메세지 해석이 안됩니다.
작성자
민처리
작성일
2001-06-28 18:06
조회수
1,360

user_email에 널(null)값이 들어갔나보죠

에러 메세지 보니깐 그렇네요

user_email을 테이블 만들때 not null 로 하셨나보네요

>>편부열 님께서 쓰시길<<

 

:: 자바로 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
3070
5593┕>Re: pro*c 에서 makefile 만들기입니다....
민처리
2001-06-30 15:10:57
1726
5574한달전 날짜를 구하는 방법???
답답이
2001-06-28
2610
5577┕>Re: 한달전 날짜를 구하는 방법???
yappie
2001-06-28 19:30:06
2041
5573svrmgrl 구동시
이현호
2001-06-28
1727
5575┕>Re: svrmgrl 구동시
herrchen
2001-06-28 18:50:46
3066
5571살려주세요. 에러메세지 해석이 안됩니다.
편부열
2001-06-28
1244
5572┕>Re: 살려주세요. 에러메세지 해석이 안됩니다.
민처리
2001-06-28 18:06:54
1360
5570win2000+oracle8i+apache+php...설정에서...
jlonglee
2001-06-28
1164
5590┕>Re: win2000+oracle8i+apache+php...설정에서...
아마도
2001-06-29 18:46:28
1072
5568sqlloader
윤진수
2001-06-28
1507
5606┕>Re: sqlloader
최성준
2001-07-02 10:03:38
2588
5567tnsnames.ora 설정에서..
으나
2001-06-28
978
5576┕>Re: tnsnames.ora 설정에서..
herrchen
2001-06-28 19:00:37
1697
5578 ┕>저.. 죄송하지만..
으나
2001-06-28 19:52:16
1094
5579  ┕>Re: 저.. 죄송하지만..
김이준
2001-06-29 00:51:42
1011
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.054초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다