十异步_实践
Posted fger
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了十异步_实践相关的知识,希望对你有一定的参考价值。
一、线程实践步骤
建立数据表 提供两个版本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构建的控制台项目操作。
添加链接字符串
以上是关于十异步_实践的主要内容,如果未能解决你的问题,请参考以下文章
SpringCloud系列十一:SpringCloudStream(SpringCloudStream 简介创建消息生产者创建消息消费者自定义消息通道分组与持久化设置 RoutingKey)(代码片段