摘要: class Program { static void Main(string[] args) { //string connStr = "server=.;database=TestBase;uid=lyc;pwd=123456;Max Pool Size=5;"; //for (int i = 阅读全文
posted @ 2020-09-07 22:33 wxmax 阅读(152) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { SqlConnection conn = new SqlConnection(); //1.手写 //string connStr = "server=.;database=db1;uid=sa;pw 阅读全文
posted @ 2020-09-07 22:12 wxmax 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1 猫类Cat class Cat{ public string name; public string color; public Cat(string name, string color){ this.name = name; this.color = color; } public void 阅读全文
posted @ 2020-09-07 10:25 wxmax 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1.cat类 class Program { static int Test1() { return 1; } static int Test2(string s) { //Console.WriteLine(s); return 100; } static void Main(string[] a 阅读全文
posted @ 2020-09-07 08:33 wxmax 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1 class Program { private delegate string GetAStr(); static void Main(string[] args) { //int x = 40; //string s = x.ToString(); //Console.WriteLine(s) 阅读全文
posted @ 2020-09-07 08:31 wxmax 阅读(163) 评论(0) 推荐(0) 编辑
摘要: SQL语言分类: 1)DQL 数据查询语言 Select 列 From 表名 where 条件 2)DML 数据操纵语言 Insert 插入 insert into 表名 (列,列,...) values (对应的值,对应的值) Update 更新 update 表名 set 列名=值, 列名=值 阅读全文
posted @ 2020-09-07 08:27 wxmax 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 创建数据库 use master --选择要操作的数据库 go--批处理命令 --创建数据库 create database TestNewBase --数据库名称 on primary --主文件组 ( name='TestNewBase',--数据库主要数据文件的逻辑名 filename='D: 阅读全文
posted @ 2020-09-07 08:26 wxmax 阅读(244) 评论(0) 推荐(0) 编辑
摘要: MySQL 一、 MySQL基础 1. MySQL数据库链接及目录 控制台连接数据库 MySQL 是一个需要账户名密码登录的数据库,登陆后使用,它提供了一个默认的 root 账号,使用安装时设置的密码即可登录 中文显示乱码chcp 65001(即使用utf-8字符编码) 登陆格式 1)mysql - 阅读全文
posted @ 2020-09-07 08:05 wxmax 阅读(152) 评论(0) 推荐(0) 编辑