IT科技

一个MySQL字段包含多个ID的解决办法

时间:2010-12-5 17:23:32  作者:系统运维   来源:应用开发  查看:  评论:0
内容摘要:复制createtableCategory ( cateIdint(5)notnullAUTO_INCREMENT, chiNa

一个MySQL字段包含多个ID的解决办法
复制create table Category   (      cateId                         int(5)                         not null AUTO_INCREMENT,字段      chiName                        varchar(80),      primary key (cateId)   );   drop table if exists OpenRecord;   create table OpenRecord   (      opreId                         int(5)                         not null AUTO_INCREMENT,      cateIds                        varchar(80),      primary key (opreId)                       );   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.
copyright © 2025 powered by 编程之道  滇ICP备2023006006号-34sitemap