上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: 正常情况下,有数据时不能直接修改属性,我们可以先备份,然后清空现有数据,然后再修改和还原,过程如下: //先缓存表CREATE TABLE T_TABLE1 AS SELECT * FROM tableTest;//删除原表所有数据DELETE FROM tableTest;//修改字段ALTER 阅读全文
posted @ 2017-05-02 15:07 田云 阅读(2362) 评论(0) 推荐(0) 编辑
摘要: 获取表: select table_name from user_tables; //当前用户的表 select table_name from all_tables; //所有用户的表 select table_name from dba_tables; //包括系统表select table_n 阅读全文
posted @ 2017-05-02 13:53 田云 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 新建:create view 视图名 as select语句 [with read only] 新建或修改create or replace view 视图名 as select语句 [with read only] 删除drop view 视图名 阅读全文
posted @ 2017-05-02 13:49 田云 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 使用sys sysdba登录sqlplus 创建表空间create tablespace histdb1datafile 'd:\oracle\product\10.2.0\oradata\orcl\histdb2.dbf'size 200mautoextend on next 10m maxsiz 阅读全文
posted @ 2017-05-02 13:48 田云 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 请移到此处查看 阅读全文
posted @ 2017-05-01 21:20 田云 阅读(149) 评论(0) 推荐(0) 编辑
摘要: sqlserver(mysql): sa身份登录: <add name="book" connectionString="Server=.; initial catalog=DatabaseName; User ID =sa; Password =tianyun" /> windows身份登录: < 阅读全文
posted @ 2017-05-01 21:15 田云 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 使用扩展方法OrderBy,OrderByDescending,效果优良。 实现代码如下: private static void SortByExtensionMethod() { List<Article> list = GetArticleList(); var sortedList = li 阅读全文
posted @ 2017-05-01 21:05 田云 阅读(390) 评论(0) 推荐(0) 编辑
摘要: txt操作 写入 读取 数组存储: string[] lines = File.ReadAllLines(file, Encoding.Default); string[] lines = File.ReadAllLines(file, Encoding.Default); 文件(夹)操作:Dire 阅读全文
posted @ 2017-05-01 20:54 田云 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 解释 可以初始化并将当前目录内容推送到同目录名的个人仓库中,可以根据情况自己修改 阅读全文
posted @ 2017-03-19 22:01 田云 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 讲解: 效果: 阅读全文
posted @ 2017-03-19 21:21 田云 阅读(810) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页