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
운영게시판
최근게시물
MySQL Q&A 667 게시물 읽기
No. 667
create table에서 에러가 납니다.
작성자
김병관
작성일
2000-01-27 23:25
조회수
5,750

[root@linux mysql]# ./bin/mysql MY_DB -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \.

Your MySQL connection id is 21 to server version: 3.22.23b

 

Type 'help' for help.

 

mysql> show databases;

+-----------+

| Database |

+-----------+

| COOLBBS |

| MY_DB |

| SEARCH |

| WEBSURVEY |

| WWWDB |

| count |

| mysql |

| test |

+-----------+

8 rows in set (0.01 sec)

 

mysql> show tables;

Empty set (0.00 sec)

 

mysql> CREATE TABLE goods (

-> id int(11) DEFAULT '0' NOT NULL auto_increment,

-> org_name varchar(20),

-> number varchar(15),

-> list varchar(20),

-> price int(10),

-> count int(10),

-> tprice int(10),

-> PRIMARY KEY (id)

-> );

Query OK, 0 rows affected (0.01 sec)

 

mysql> show tables;

+-----------------+

| Tables in MY_DB |

+-----------------+

| goods |

+-----------------+

1 row in set (0.00 sec)

 

mysql> CREATE TABLE order (

-> id int(11) DEFAULT '0' NOT NULL auto_increment,

-> org_name varchar(20),

-> recip_name varchar(20),

-> org_phone varchar(20),

-> recip_phone varchar(20),

-> recip_addr varchar(60),

-> comment text,

-> reg_date datetime,

-> PRIMARY KEY (id)

-> );

ERROR 1064: 'SQL 구문에 오류가 있습니다.' 에러 같읍니다. ('order (

id int(11) DEFAULT '0' NOT NULL auto_increment,

org_name varchar(2' 명령어 라인 1)

mysql>

[Top]
No.
제목
작성자
작성일
조회
671정재익님 수고하십니다.. 이것도 좀..
이희원
2000-01-28
5762
674┕>Re: 정재익님 수고하십니다.. 이것도 좀..
정재익
2000-01-28 16:53:02
6720
670php 카운터인데요.. 저장이 안되요. ㅠ.ㅠ
이희원
2000-01-28
6040
675┕>Re: php 카운터인데요.. 저장이 안되요. ㅠ.ㅠ
정재익
2000-01-28 18:41:06
6398
668고맙습니다.
현연숙
2000-01-27
5854
667create table에서 에러가 납니다.
김병관
2000-01-27
5750
669┕>Re: create table에서 에러가 납니다.
정재익
2000-01-28 00:00:09
6562
663php 화일에서 -> $total = mysql_num_rows ($result); 에서 에러 발생
이상헌
2000-01-27
5858
665┕>Re: php 화일에서 -> $total = mysql_num_rows ($result); 에서 에러 발생
정재익
2000-01-27 21:25:17
6370
662C API를 이용한 소스 코드 컴파일에 관하여...
양선웅
2000-01-27
5711
666┕>Re: C API를 이용한 소스 코드 컴파일에 관하여...
정재익
2000-01-27 21:27:43
6375
660PHP의 printf에서 날짜의 표현
김도연
2000-01-27
5790
661┕>Re: PHP의 printf에서 날짜의 표현
정재익
2000-01-27 17:52:51
6411
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.026초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다