摘要:
根据字符串动态调用方法是一个很有用的技巧,在nodejs中:var kiwi = { name:'kiwi', say:function () { console.log("my name is" + this.name); }
} kiwi['say'](); // => my name is kiwi 阅读全文
随笔档案-2013年2月19日
java连接access数据库----简单demo
2013-02-19 15:41 by java20130722, 384 阅读, 收藏, 编辑
摘要:
用户java访问access2007 不需要配置数据源!public static void main(String[] args) throws SQLException, UnsupportedEncodingException { // --Access 数据库路径 String dbpath = "C:\\Users\\hlu\\Desktop\\hua\\hua_dic_db.mdb"; //路劲最好不要出现中文,本人测试过程中中文报错! // --连接字符串 String url = "jdbc:odbc:DRIVER={Microsoft Acces 阅读全文
DBA常用SQL语句
2013-02-19 10:58 by java20130722, 261 阅读, 收藏, 编辑
摘要:
查看表空间的名称及大小:SQL>select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_sizefrom dba_tablespaces t, dba_data_files d where t.tablespace_name = d.tablespace_name group by t.tablespace_name;查看表空间物理文件的名称及大小:SQL>select tablespace_name, file_id, file_name,round(bytes/(1024*1024),0) total_space 阅读全文