随笔分类 -  数据库

摘要:--向student表中加入入学时间属性,其数据类型为日期型alter table student add scome date; --删除student表中的入学时间属性alter table student drop column scome; --删除基本表drop table <表名>; - 阅读全文
posted @ 2018-05-22 14:20 两碗白米饭 阅读(1265) 评论(0) 推荐(1)
摘要:1.decode () 例子:它的写法如下decode('a','b','c','d'),其中a,b,c,d可以是其他函数也可以是数值,依据我们自己的情况来使用,它的含义是如果a=b,那么结果显示c,否则d。 翻译成我们更通俗易懂的话就是: if(sex=1) then return '男' els 阅读全文
posted @ 2018-05-21 18:41 两碗白米饭 阅读(7678) 评论(0) 推荐(0)