当前位置:网站首页>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;边栏推荐
- Unable to link the remote redis server (solution 100%
- 3. About cookies
- 从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks
- Kirin Xin'an with heterogeneous integration cloud financial information and innovation solutions appeared at the 15th Hunan Financial Technology Exchange Conference
- 2022.07.02
- 5billion, another master fund was born in Fujian
- Solve the error reporting problem of rosdep
- 杰理之关于 TWS 声道配置【篇】
- 杰理之按键发起配对【篇】
- SD_ DATA_ RECEIVE_ SHIFT_ REGISTER
猜你喜欢

CMD command enters MySQL times service name or command error (fool teaching)

The top of slashdata developer tool is up to you!!!

In the first half of 2022, I found 10 books that have been passed around by my circle of friends

The strength index of specialized and new software development enterprises was released, and Kirin Xin'an was honored on the list

Command mode - unity

State mode - Unity (finite state machine)

2022上半年朋友圈都在传的10本书,找到了

How to share the same storage among multiple kubernetes clusters

从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks

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
随机推荐
what‘s the meaning of inference
In 2021, the national average salary was released. Have you reached the standard?
State mode - Unity (finite state machine)
5billion, another master fund was born in Fujian
LeetCode 535(C#)
POJ 1182: food chain (parallel search) [easy to understand]
Numpy——axis
[HDU] 5248 sequence transformation (greedy + dichotomy) [recommended collection]
【RT-Thread env 工具安装】
3. About cookies
Jerry's headphones with the same channel are not allowed to pair [article]
杰理之发起对耳配对、回连、开启可发现、可连接的轮循函数【篇】
A hodgepodge of ICER knowledge points (attached with a large number of topics, which are constantly being updated)
"Decryption" Huawei machine vision Corps: Huawei is moving up and the industry is moving forward
【MIME笔记】
PTA 1102 teaching Super Champion volume
LC:字符串转换整数 (atoi) + 外观数列 + 最长公共前缀
[mime notes]
[Base64 notes] [suggestions collection]
【Base64笔记】「建议收藏」