2018年10月3日

CSS中position的absolute和relative用法

摘要: static: HTML元素的默认定位方式 absolute: 将对象从文档流中拖出,使用left,right,top,bottom等属性进行绝对定位。而其层叠通过z-index属性定义。绝对定位的元素的位置相对于最近的已定位父元素,如果元素没有已定位的父元素,那么它的位置相对于<html> rel 阅读全文

posted @ 2018-10-03 16:54 asdyzh 阅读(1246) 评论(0) 推荐(0)

静态类静态属性静态方法

摘要: 静态方法和实例方法的访问权限表 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleAppli 阅读全文

posted @ 2018-10-03 11:21 asdyzh 阅读(400) 评论(0) 推荐(0)

DATASET()用法

摘要: DataSet是ADO.NET的中心概念。可以把DataSet当成内存中的数据库,DataSet是不依赖于数据库的独立数据集合。所谓独立,就是说,即使断开数据链路,或者关闭数据库,DataSet依然是可用的,DataSet在内部是用XML来描述数据的,由于XML是一种与平台无关、与语言无关的数据描述 阅读全文

posted @ 2018-10-03 11:03 asdyzh 阅读(703) 评论(0) 推荐(0)

更改数据,ExecuteNonQuery()

摘要: using (mycon) { mycon.Open(); string MyTime; DateTime dtDate; MyTime = textBox1.Text.ToString(); string sql; if (!DateTime.TryParse(MyTime, out dtDate 阅读全文

posted @ 2018-10-03 09:48 asdyzh 阅读(160) 评论(0) 推荐(0)

SqlDataReader

摘要: using (mycon) { //using语句与try catch finally结合使用 mycon.Open(); // MessageBox.Show("dakai"); string sql = "select * from [hf_zw].[dbo].[t_reservation] w 阅读全文

posted @ 2018-10-03 09:46 asdyzh 阅读(222) 评论(0) 推荐(0)

数据适配器

摘要: private void dgvBind(string _myDate1,string _myDate2) { SqlConnection mycon = GetConnection(); try { mycon.Open(); string str = "SELECT reservation_id 阅读全文

posted @ 2018-10-03 09:44 asdyzh 阅读(115) 评论(0) 推荐(0)

数据库连接-引用配置文件

摘要: using System.Configuration; string constr = ConfigurationManager.ConnectionStrings["SQLConnString"].ConnectionString; string constr = "Server=127.0.0. 阅读全文

posted @ 2018-10-03 09:41 asdyzh 阅读(423) 评论(0) 推荐(0)

2018年9月29日

sql获取当前时间

摘要: sql读取系统日期和时间的方法如下:--获取当前日期(如:yyyymmdd)select CONVERT (nvarchar(12),GETDATE(),112)--获取当前日期(如:yyyymmdd hh:MM:ss)select GETDATE()--获取当前日期(如:yyyy-mm-dd)Se 阅读全文

posted @ 2018-09-29 14:29 asdyzh 阅读(91500) 评论(1) 推荐(0)

2018年9月26日

MySQL server has gone away问题得解决方案

摘要: mysql出现ERROR : (2006, 'MySQL server has gone away') 的问题意思就是指client和MySQL server之间的链接断开了。 造成这样的原因一般是sql操作的时间过长,或者是传送的数据太大(例如使用insert ... values的语句过长, 这 阅读全文

posted @ 2018-09-26 17:12 asdyzh 阅读(244) 评论(0) 推荐(0)

连接mysql时报:message from server: "Host '192.168.76.89' is not allowed to connect to this MySQL server 处理方案

摘要: 1、先用localhost方式连接到MySQL数据库,然后使用MySQL自带的数据库mysql; use mysql; 2、执行:select host from user where user = 'root'; 发现,host的值就是localhost。 所以将它的值改掉:update user 阅读全文

posted @ 2018-09-26 17:11 asdyzh 阅读(2571) 评论(0) 推荐(0)

导航