摘要: Oracle中建立索引,会提高查询速度: create index 索引名 on 表名(列名);create index index_userid on tbl_detail(userid);如何找数据库表的主键字段的名称?SELECT * FROM user_constraints WHERE C... 阅读全文
posted @ 2016-01-11 09:19 Gyutao 阅读(129) 评论(0) 推荐(0) 编辑
摘要: oracle常用函数汇总以下是对oracle中的常用函数进行了汇总介绍,需要的朋友可以过来参考下一、运算符算术运算符:+ - * / 可以在select 语句中使用连接运算符:|| select deptno|| dname from dept;比较运算符:> >= = != select sys... 阅读全文
posted @ 2015-12-18 17:40 Gyutao 阅读(316) 评论(0) 推荐(0) 编辑
摘要: variso=newIsoDateTimeConverter();iso.DateTimeFormat="yyyy-MM-dd";objectobj=newobject();JsonConvert.SerializeObject(obj,iso); var iso = new Newtonsoft.... 阅读全文
posted @ 2015-09-24 13:48 Gyutao 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 快捷键Win+R 输入CMD回车输入 netsh winsock reset 然后重启电脑 问题解决OK 阅读全文
posted @ 2015-08-18 10:49 Gyutao 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 创建一:List items = new List(){ new SelectListItem(){Text="Text1",Value="Value1",Selected=false}, new SelectListItem(){Text="Text2",Value="Value2",Selected=true}, new SelectListItem(){Text="Text3",Value="Value3",Selected=false}, new SelectList 阅读全文
posted @ 2013-11-20 19:44 Gyutao 阅读(254) 评论(0) 推荐(0) 编辑
摘要: CodeFirst 用中文说是代码优先,此技术可以让我们先写代码,然后由Entity Framework根据我们的代码建立数据库接下来用学生这个例子来演示,有学生表,课程表,和成绩表三张表首先是Model层学生表using System;using System.Collections.Generic;using System.Linq;using System.Web;/**/using System.ComponentModel.DataAnnotations;//验证namespace CodeFirstDemo.Models{ public class Student { ... 阅读全文
posted @ 2013-11-18 14:05 Gyutao 阅读(273) 评论(0) 推荐(0) 编辑