摘要: Windows服务 -- 启动MySQL net start mysql-- 创建Windows服务 sc create mysql binPath= mysqld_bin_path(注意:等号与值之间有空格)连接与断开服务器 mysql -h 地址 -P 端口 -u 用户名 -p 密码 SHOW 阅读全文
posted @ 2023-06-07 09:49 DLLDLL 阅读(7) 评论(0) 推荐(0) 编辑
摘要: SQLSERVERUSE [HealthOne] -- replace your dbname替换你的数据库名字GO IF Object_id('tempdb..#Hone') IS NOT NULL DROP TABLE #Hone SELECTs.Name AS SchemaName,t.Nam 阅读全文
posted @ 2023-04-10 10:36 DLLDLL 阅读(381) 评论(0) 推荐(0) 编辑
摘要: create DATABASE mydb2use mydb2create PROCEDURE proc_13_prepare()begin DECLARE next_year int; DECLARE next_month int; DECLARE next_month_day int; DECLA 阅读全文
posted @ 2022-03-30 16:42 DLLDLL 阅读(70) 评论(0) 推荐(0) 编辑
摘要: create PROCEDURE proc12_cursor_handler(in p_sid int)begin DECLARE v_name varchar(20); DECLARE v_gender varchar(10); DECLARE v_age int; declare flag in 阅读全文
posted @ 2022-03-30 12:11 DLLDLL 阅读(30) 评论(0) 推荐(0) 编辑
摘要: use mydb1 //使用数据库 create table t_user( uid int PRIMARY key, u_name varchar(50), u_password varchar(50));//创建表 desc t_user //查看表结构 create PROCEDURE pro 阅读全文
posted @ 2022-03-29 21:28 DLLDLL 阅读(273) 评论(0) 推荐(0) 编辑
摘要: --创建函数 CREATE FUNCTION [dbo].[GET_NUMBER] (@S VARCHAR(100))RETURNS VARCHAR(100)ASBEGIN WHILE PATINDEX('%[^0-9\\.\\^0-9]%', @S) > 0 BEGIN SET @S = STUF 阅读全文
posted @ 2022-03-25 20:09 DLLDLL 阅读(172) 评论(1) 推荐(0) 编辑