
sql
blacop
这个作者很懒,什么都没留下…
展开
-
oracle 分组查询 子查询 统计查询 FROM加子查询临时表 查询高于平均工资 示例代码
---求平均工资SELECT AVG(sal) FROM emp;-----------大于平均工资SELECT e.ename,e.job,e.salFROM emp eWHERE e.sal>(SELECT AVG(sal) FROM emp)----------e领导编号=m雇员编号--emp雇员表,dept部门表SELECT e.ename 雇员姓名,e.job 雇员职位,原创 2016-10-01 23:58:48 · 557 阅读 · 0 评论 -
调用自定义SQLHelper示例
using System;using System.Collections.Generic;using System.Data.SqlClient;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace _02SQLHelperC{ class Prog原创 2016-11-14 14:17:45 · 756 阅读 · 0 评论 -
封装SQLHelper
using System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Threading.Tasks;namespace原创 2016-11-14 13:55:09 · 315 阅读 · 0 评论 -
自建List<>绑定ComboBox下拉框实现省市联动
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data原创 2016-11-12 21:59:35 · 4237 阅读 · 0 评论 -
参数化登陆防止SQL注入攻击
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data原创 2016-11-12 20:21:34 · 465 阅读 · 0 评论 -
封装SQL访问方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Configuration;using System.Data.SqlClient;namespace _04封装SQL访问方法{ public class SqlHelper {原创 2016-11-12 20:17:55 · 1472 阅读 · 0 评论 -
TXT导入数据到SQL
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.IO;namespace _03导入数据{ class Program { static void Main(原创 2016-11-12 14:59:39 · 448 阅读 · 0 评论 -
SQL导出数据到TXT
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.IO;namespace _02导出数据{ class Program { static void Main(原创 2016-11-12 14:56:38 · 3487 阅读 · 0 评论 -
对应SQL数据库 关系转对象,表名-类名 ,列名-属性, DeskInfo餐桌类
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace _03大项目{ public class DeskInfo { //DeskId, DeskName, DeskNamePinYin, DeskDelFlag, DeskNum原创 2016-11-12 12:25:35 · 855 阅读 · 0 评论 -
SQL代码-创建DeskInfo表
create table DeskInfo(DeskId int primary key not null identity (1,1),DeskName varchar(20) ,DeskNamePinYin varchar(20),DeskDelFlag int,DeskNum int) select DeskId,DeskName,DeskNamePinYin,DeskNum原创 2016-11-12 12:20:10 · 451 阅读 · 0 评论 -
DataGridView连接Sql数据库 功能 查询 添加 删除 修改
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data原创 2016-11-11 23:23:09 · 3882 阅读 · 0 评论 -
SqliteHelper
Helper原创 2016-12-09 10:40:22 · 833 阅读 · 0 评论