mysql SQL语句积累参考
--重命名表
rename table t_softwareport to software_port;
--建立外键
alter table software_port add constraint fk_software_port_softwareprocessid foreign key (softwareprocessid) references software_process (id) on restrict on restrict;
--删除列
alter table software_type drop column upid, drop column orderid;
--修改列名
alter table software_process change software_id softwareid int(11) not null;
--更改列编码
alter table cms_contentbody modify column offical_site_name var30) character set utf8 collate utf8_unicode_ci not null;
--增加列
alter table cms_flash add name var30) not null unique;
-
ASP 时间函数及获取服务器时间的写法
一、常用的ASP时间函数1、now()获取当前系统日期和时间,ASP输出格式:<%=now()%>2、Year(now())获取年份,ASP输出格式:<%=year(now())%>3、Month(now())获取当前月份,ASP输出格式:<%=month(now())%>4、day(now())获取当天数,ASP输出格式:<%=day(now())%>5、hour(now())...
-
WAP的简介
WAP协议被设计用来在无线客户端(比如移动电话)上展示因特网内容。您应当具备的基础知识在继续学习之前,您需要对下面的知识有基本的了解:WWW,HTML以及有关网页构建的基础知识JavaScriptXML如果您希望首先学习这些项目,请在我们的首页访问这些教程。什么是WAP?无线产...
-
javascript包装对象的用法
js对象是一种复合值:它是属性或已命名值得集合。参考以下代码:vars="helloworld";varlen=th;在该例子中,s是字符串,而字符串不是对象,但为何会有属性呢?其实只要引用了字符串s的属性,js就会将字符串通过调用newString(s)的方式转换为对象,该对象继承了字符串的方法,并被...
-
有关JavaScript中的prototype.bind()方法介绍
以前,你可能会直接设置self=this或者that=this等等,这样做当然也能起作用,但是使用()会更好,看上去也更专业。下面举个简单的例子:复制代码代码如下:varmyObj={specialFunction:function(){},anotherSpecialFunction:function(){},getAsyncData:function(cb){cb();}...