TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
DROP TABLE IF EXISTS uc_pms;# MySQL 返回的查询结果为空(即零行)。
* R% P7 d- A/ j# U# MySQL 返回的查询结果为空(即零行)。0 |' I& B1 ]1 W" B V, |
CREATE TABLE uc_pms(
+ B& {; d7 r5 f4 R2 r! Fpmid INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
1 o4 b/ Z' S; ]msgfrom VARCHAR( 15 ) NOT NULL DEFAULT '',' a7 O8 D! @/ ^( H! v) F2 j
msgfromid MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0',. u$ m+ c4 B1 ?! C2 t
msgtoid MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0',* ^6 g; k$ x& o* O
folder ENUM( 'inbox', 'outbox' ) NOT NULL DEFAULT 'inbox',6 h E4 Z. j& D, p" ]
new TINYINT( 1 ) NOT NULL DEFAULT '0',
6 V; j6 o: V% }& osubject VARCHAR( 75 ) NOT NULL DEFAULT '',
) k: p R- {! c5 ?dateline INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',! O, ?( V" M0 N; k
message TEXT NOT NULL ,1 } }2 ~! H7 l' c& M1 I: Z
delstatus TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0',
3 Y/ R+ ]' e' S/ S9 T6 C: T' Q% lrelated INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',- q M& J. N( q: ~0 ^$ I
PRIMARY KEY ( pmid ) ,) M0 r! C- M! D1 Q
KEY msgtoid( msgtoid, folder, dateline ) ,. V5 r' [2 I3 {: j+ \
KEY msgfromid( msgfromid, folder, dateline ) ,0 a& L: [. f- @; S- Q
KEY RELATED( related ) ,# |. Q1 f' f, K0 ]0 H
KEY getnum( msgtoid, folder, delstatus ), D% N/ ~( M/ k- S4 u( z
) TYPE = MYISAM ;# MySQL 返回的查询结果为空(即零行)。
2 y7 ]! X" m ~% W. }
! J- N) `9 q- o( u- S E |
|