随笔分类 -  SQL-Server

摘要:一.数据查询 基础查询: select column1,column2 from table 条件查询: select column1,column2 from table where id = 1 select column1,column2 from table where id = 1 and 阅读全文
posted @ 2025-04-11 11:02 龙卷风吹毁停车场 阅读(30) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-04-09 21:57 龙卷风吹毁停车场 阅读(8) 评论(0) 推荐(0)
摘要:using System.Data; using System.Data.SqlClient; class Pranson() { public static void Main() { //创建数据库链接对象 string connString = "Server=.;DataBase=Cours 阅读全文
posted @ 2024-04-23 13:55 龙卷风吹毁停车场 阅读(105) 评论(0) 推荐(0)
摘要:use master go if exists(select * from sysdatabases where name = 'CourseManageDB') --查询是否存在这个库 drop database CourseManageDB --删除数据库(不可恢复) go --表示结束 cre 阅读全文
posted @ 2024-04-23 13:08 龙卷风吹毁停车场 阅读(63) 评论(0) 推荐(0)