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();}...