01 2020 档案
摘要:1 private void button1_Click(object sender, EventArgs e) 2 { 3 DataTable dt1 = new DataTable(); 4 dt1.Columns.Add("ID", typeof(string)); 5 dt1.Columns
阅读全文
摘要:1.查询当前年、月、周相关时间 1.1.查询当前年份 SELECT TO_CHAR(SYSDATE,'YYYY') AS YEAR FROM DUAL--查询当前年份 SELECT TO_CHAR(SYSDATE,'YYY') AS YEAR FROM DUAL--查询当前年份后两位 SELECT
阅读全文
摘要:1 class RegisterClass 2 { 3 //步骤一: 获得CUP序列号和硬盘序列号的实现代码如下: 4 //获得CPU的序列号 5 bool Stupids = true; 6 bool Cat = false; 7 public string getCpu() 8 { 9 stri
阅读全文
摘要:1 /// <summary> 2 /// 取得网站的根目录的URL 3 /// </summary> 4 /// <returns></returns> 5 public static string GetRootURI() 6 { 7 string AppPath = ""; 8 HttpCon
阅读全文
摘要:1) concat只能连接两个字符串,||可以连接多个字符串 select concat('1', '2') from dual; select '1'||'2'||'3' from dual; 2) ceil(n) :取大于等于数值n的最小整数; floor(n):取小于等于数值n的最大整数; -
阅读全文
摘要:在我们平常的开发中可能会遇到这样的问题,就是判断某一列是否全部由数字组成,我们都知道oracle并没有给我们提供这样一个现成的函数,那么根据我的经验我总结了两个行之有效的方法(列名:column,表名:table): 1.使用trim+translate函数: select * from table
阅读全文