关于新闻,在线编辑器建表时此字段一定要为text
create table about(
content text
)engine=myisam default charset=utf8;
create database day456 default charset utf8;
create table user(
)engine=myisam default charset=utf8;
select * from stu;
use day456;
drop table user;
use day456;
select * from user;
truncate user;
use hnscdb;
select * from hnsc_guestbook;
drop table hnsc_guestbook;
create table hnsc_guestbook(
id int unsigned auto_increment,
gname varchar(50),
content text,
gsex varchar(5),
gtell varchar(20),
gphpne varchar(20),
gadress varchar(50),
gmail varchar(50),
gtime int,
gip varchar(15),
gflag enum('y','n') default 'n',
primary key(id)
)engine=myisam default charset=utf8;
create table hnsc_zz(
id int unsigned auto_increment,
ztitle varchar(200),
url varchar(200),
cname varchar(50),
flag enum('y','n') default 'y',
primary key(id),
constraint fk foreign key (cname) references hnsc_zzclass(cname) on delete set null on update cascade
)engine=innodb default charset=utf8;
use hnscdb;
select * from hnsc_zz;
drop table hnsc_zz;
truncate hnsc_zz;
create table hnsc_zzclass(
cname varchar(50),
primary key(cname)
)engine=innodb default charset=utf8;
create table hnsc_zz(
id smallint unsigned auto_increment,
title varchar(50),
url varchar(200),
cname varchar(50),
flag enum('y','n') default 'y',
primary key(id),
constraint fk foreign key (cname) references hnsc_zzclass(cname) on delete set null on update cascade
)engine=innodb default charset=utf8;
select * from hnsc_zzclass;
select * from hnsc_zz;
truncate hnsc_zz;
create table hnsc_newsclass(
cname varchar(50),
primary key(cname)
)engine=innodb default charset=utf8;
create table hnsc_news(
id smallint unsigned auto_increment,
title varchar(50),
content text,
author varchar(200),
num int unsigned default 0,
ntime int unsigned,
cname varchar(50),
flag enum('y','n') default 'y',
primary key(id),
constraint nfk foreign key (cname) references hnsc_newsclass(cname) on delete set null on update cascade
)engine=innodb default charset=utf8;
drop table hnsc_news;
select * from hnsc_newsclass;
truncate hnsc_news;
use hnscdb;
select * from hnsc_link;
drop table hnsc_pro;
create table hnsc_pro(
id smallint unsigned auto_increment,
title varchar(50),
img varchar(200),
content text,
num int unsigned default 0,
ntime int unsigned,
flag enum('y','n')default 'n',
jflag enum('y','n')default 'y',
primary key(id)
)engine=myisam default charset=utf8;
select * from hnsc_pro;
truncate hnsc_pro;
insert into hnsc_pro(content) values('你好');
insert into hnsc_pro(title,ntime,flag,jflag,content) values('aa',545,'y','n','第三方');
insert into hnsc_pro(title,ntime,flag,jflag,content,img) values('aa','10','y','n','你好','ds.jpg');
use hnscdb;
create table hnsc_user(
account varchar(50) primary key,
pwd varchar(50), -- 密码
truename varchar(50),-- 真是姓名
face varchar(200), -- 注册时上传的头像
why varchar(100), -- 注册时设置的问题
ok varchar(100), -- 设置的问题的答案
rip varchar(15),
regtime int unsigned-- 注册的时间
)engine=myisam default charset=utf8;
use hnscdb;
select * from hnsc_user;
drop table hnsc_user;
-- 日志管理表
create table hnsc_userlog(
id smallint unsigned auto_increment,
account varchar(50), -- 账户
alog varchar(30), -- 用户的日志操作的内容
aip varchar(15), -- 登录的ip
atime int unsigned, -- 登录的时间
primary key(id)
)engine=myisam default charset=utf8;
-- 上一篇
select id from hnsc_news where cname in(
select cname from hnsc_news where id=3)and id>3 limit 1;
-- 下一篇
select id from hnsc_news where cname in(
select cname from hnsc_news where id=5)and id<5 order by id desc limit 1;
select * from hnsc_news;
create table about(
content text
)engine=myisam default charset=utf8;
select * from about;
drop table about;
truncate table about;
<h1 class="newschptit" style="margin: 0px; padding: 0px; border: 0px; width: 700px; text-align: cent
关于新闻,在线编辑器建表时此字段一定要为text的更多相关文章
- SAP:建表时如果有QUAN、CURR类型的字段不能激活的问题
建表时如有一个QUAN类型的字段,那么就要给字段设置Reference field,参考的字段的Data Type要是UNIT, 并设置对应的Reference table,也就是参考字段所在的tab ...
- mysql workbench 建表时 PK,NN,UQ,BIN,UN,ZF,AI解释
mysql workbench 建表时 - PK: primary key (column is part of a pk) 主键 - NN: not null (column is nullable ...
- MVC EF 移除建表时自动加上s的复数形式
移除建表时自动加上s的复数形式 public class DBContext : DbContext { public DBContext() : base("name=DBContext& ...
- oracle 建表时显示ORA-00984: 列在此处不允许
oracle 建表时显示ORA-00984: 列在此处不允许 CreationTime--2018年7月19日16点10分 Author:Marydon 1.情景展示 使用plsql建表时,报错 ...
- oracle 建表时显示ORA-00904无效的标识符
oracle 建表时显示ORA-00904无效的标识符 CreationTime--2018年7月19日16点03分 Author:Marydon 1.情景展示 使用plsql建表时,报错 字段展 ...
- MySQL建表时列名同保留字重复问题解决办法
建表时遇到遇到属性名同MySQL的保留字相同导致不能建表的问题,如下SQL语句: CREATE TABLE TBL_ACCOUNT_FROZEN_RECORD ( ID BIGINT NOT NULL ...
- 初触hibernate01--MYSQL建表时type=InnoDB和Engine=InnoDB注意点
第一次运行程序时,将Hibernte中的hibernate.hbm2ddl.auto设置成create(或者是update),让Hibernate帮助自动建表,但不成功,报了如下信息: You hav ...
- 【原创】Hibernate通过实体类自动建表时type=MyISAM的问题
ι 版权声明:本文为博主原创文章,未经博主允许不得转载. 当使用的mysql数据库为5.5版本时,方言需要设置为 <property name="hibernate.dialect&q ...
- Hbase建表时遇到的问题This could be a sign that the server has too many connections
Hbase创建表时遇到以下错误: ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able to conne ...
随机推荐
- Android Sudoku应用挂掉的问题
在真机上测试数独游戏时发现,快速点击屏幕时,游戏偶尔出现挂死的情况,Log如下 04-08 15:35:00.838 7317-7356/org.elvalad.sudoku D/OpenGLRend ...
- Linux的sed命令
一.初识sed 在部署openstack的过程中,会接触到大量的sed命令,比如 # Bind MySQL service to all network interfaces.sed -i 's/12 ...
- HRBUST 1867 差分+BIT
我在群上看到的某道题,貌似用的是线段树,因为前几天遇到差分,再用BIT动态维护一下前缀和,感觉可做就A了. 加了个读优就Rank1啦! 某个不常见的题库,还是把题目拿下来把.. Description ...
- hibernate的数据库乱码问题
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-configuration ...
- 关于在win7内集成usb3.0驱动。
mac air 装了win7但是折腾良久还是无法升级,只能是重新安装. 很蛋疼.bootcamp 老是找不到驱动.只能是手动分区后U盘引导安装. 驱动的下载,直接在Os x 下用bootcamp 下载 ...
- Hadoop及其相关组件简介
一.大数据介绍 1.大数据指的是所涉及的数据量规模巨大到无法通过人工,在合理时间内达到截取.管理.处理.并整理成为人类所能解读的形式的信息. 2.大数据,可帮助我们能察觉商业趋势.判断研究质量.避免疾 ...
- iOS红马甲项目Bug总结(3)
这里是一些小总结 1.使用图片缓存之后,新添加的图像一直不能显示 2.项目打包通过appliction loader上传成功了,可是itunes 上面的构建版本项,一直没显示出来 3.界面加载之后,t ...
- C/C++的四大内存分区 分类: C/C++ 2015-05-09 01:36 163人阅读 评论(0) 收藏
导读 正确的理解C/C++程序的内存分区,是合格程序猿的基本要求. 网络上流形两大版本内存分区,分别为: 1. 五大内存分区:堆.栈.全局/静态存储区.自由存储区和常量存储区. 2. 五大内存分区:堆 ...
- 关于 MAXScript 逐行写入文本
官方帮助文档FileStream Values部分有相关介绍. fn format_txt filepath filetext = ( if doesFileExist filepath == tru ...
- Semantic UI 中文参考手册
一个拥有友好词汇表的前端框架,完全语义化的前端界面开发框架,为一组开发人员之间共享UI元素配备了规格.使用的词汇(类和ID)相比其它替代品更加简洁,从而降低了学习曲线.有许多HTML元素,UI元素和场 ...