当前位置:网站首页>MySQL、sqlserver oracle数据库连接方式
MySQL、sqlserver oracle数据库连接方式
2022-07-07 17:23:00 【Aimin20210819】
编程连接方式
sql server默认端口号为:1433
URL:"jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbname"
DRIVERNAME:"com.microsoft.jdbc.sqlserver.SQLServerDriver";
mysql 默认端口号为:3306
URL:jdbc:mysql://localhost:3306/test? user=root&password=&useUnicode=true&characterEncoding=gbk
DRIVERNAME:"com.mysql.jdbc.Driver";
oracle 默认端口号为:1521
URL:"jdbc:oracle:thin:@localhost :1521:orcl";
DRIVERNAME:"oracle.jdbc.driver.OracleDriver";
DOS是Disk Operation System的简称,意为磁盘操作系统
创建表添加注解
CREATE TABLE `t_account_phone_pool` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '修改时间',
`is_enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据可用 0:不可用;1:可用',
`is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '逻辑删除 0:未删除;1:删除',
`create_user` varchar(20) DEFAULT NULL COMMENT '创建人',
`update_user` varchar(20) DEFAULT NULL COMMENT '修改人',
`account_name` varchar(20) NOT NULL COMMENT '帐号名称',
`phone` varchar(20) NOT NULL COMMENT '号码',
`send_limit_count` int(11) NOT NULL COMMENT '发送限制次数',
PRIMARY KEY (`id`),
KEY `idx_phone_account_name` (`phone`,`account_name`),
KEY `idx_phone` (`phone`),
KEY `idx_account_name` (`account_name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='帐号-号码池表';
命令查看表中字段注释(解释)
show full columns from tablename;
边栏推荐
- Draw squares with Obama (Lua)
- Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
- Do you know all four common cache modes?
- 【RT-Thread env 工具安装】
- Responsibility chain model - unity
- LeetCode 648(C#)
- 如何给“不卖笔”的晨光估值?
- For friends who are not fat at all, nature tells you the reason: it is a genetic mutation
- UVALive – 4621 Cav 贪心 + 分析「建议收藏」
- 10 schemes to ensure interface data security
猜你喜欢
Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
cmd命令进入MySQL时报服务名或者命令错误(傻瓜式教学)
Experiment 1 of Compilation Principle: automatic implementation of lexical analyzer (Lex lexical analysis)
Scientists have observed for the first time that the "electron vortex" helps to design more efficient electronic products
Numpy——axis
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
Borui data was selected in the 2022 love analysis - Panoramic report of it operation and maintenance manufacturers
[tpm2.0 principle and Application guide] Chapter 16, 17 and 18
State mode - Unity (finite state machine)
2022.07.05
随机推荐
2022年投资哪个理财产品收益高?
【RT-Thread env 工具安装】
50亿,福建又诞生一只母基金
超分辨率技术在实时音视频领域的研究与实践
如何给“不卖笔”的晨光估值?
手把手教姐姐写消息队列
LC:字符串转换整数 (atoi) + 外观数列 + 最长公共前缀
How to choose the appropriate automated testing tools?
2022.07.04
PV静态创建和动态创建
Netease Yunxin participated in the preparation of the standard "real time audio and video service (RTC) basic capability requirements and evaluation methods" issued by the Chinese Academy of Communica
PTA 1102 teaching Super Champion volume
[Verilog advanced challenge of Niuke network question brushing series] ~ multi bit MUX synchronizer
Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
Draw squares with Obama (Lua)
The top of slashdata developer tool is up to you!!!
2022.07.02
Version 2.0 of tapdata, the open source live data platform, has been released
怎么在手机上买股票开户 股票开户安全吗
LeetCode 648(C#)