• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
15037075275z
博客园 首页 新随笔 联系 订阅 订阅 管理

随笔分类 -  SQL

 
连接数据库
摘要:1.ADO.NET对象的使用 public class SQLHelper{ #region Connectionstring 字符串 public static string Connectionstr = System.Configuration.ConfigurationManager.Con 阅读全文
posted @ 2017-08-10 18:34 15037075275z 阅读(166) 评论(0) 推荐(0)
使用命令创建数据库和表
摘要:create database Data 注:创建一个名为Data的数据库use Data 注:使用Data数据库use master 注:使用系统数据库drop database Data 注:删除Data数据库 create table Surface 注:创建一个名为Surface的表(ID 阅读全文
posted @ 2017-08-09 18:31 15037075275z 阅读(954) 评论(0) 推荐(0)
数据库的四个基本语句
摘要:对数据库的操作基本是增加,删除,修改,查询。 1.基本的查询语句 select * from 表名 where 查询条件 select COUNT(*) from 表名(返回的是这个表里数据的个数) 2.基本的删除语句 delete 表名 where 删除条件 3.基本的插入语句 insert in 阅读全文
posted @ 2017-07-03 18:17 15037075275z 阅读(1123) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3