首页 > 其他 > 详细

十二、异步_实践

时间:2019-04-28 14:14:57      阅读:118      评论:0      收藏:0      [点我收藏+]

 

一、线程实践步骤

建立数据表 提供两个版本Mysql和sqlserver 两种

 

create database Shop 
go
use Shop
go

create table Phone
(
	Id int primary key identity(1,1),
	Phone varchar(32),
	PCount int
)


insert into Phone values(‘vivo nex‘,3)

select * from Phone


create table User_X_Phone
(
	Id int primary key identity(1,1),
	PhoneId int,
	UserId varchar(64)
)


select * from Phone
select * from User_X_Phone

truncate table Phone
truncate table User_X_Phone
insert into Phone values(‘vivo nex‘,3)

  SqlServer版本的

 

create database Shop 
go
use Shop
go

CREATE TABLE Phone (
	Id int PRIMARY KEY AUTO_INCREMENT,
	Phone varchar(32),
	PCount int
)

INSERT INTO `Phone` (`Id`, `Phone`, `PCount`) VALUES (NULL, ‘vivo nex‘, ‘3‘);

select * from Phone


create table User_X_Phone
(
	Id int PRIMARY KEY AUTO_INCREMENT,
	PhoneId int,
	UserId varchar(64)
)


select * from Phone
select * from User_X_Phone

truncate table Phone
truncate table User_X_Phone
insert into Phone values(‘vivo nex‘,3)

  MySql版本

 

二、项目创建 我们使用FrameWork构建的控制台项目操作。

技术分享图片

添加链接字符串

技术分享图片

 

十二、异步_实践

原文:https://www.cnblogs.com/fger/p/10783567.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!