当前位置:网站首页>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;边栏推荐
- 博睿数据入选《2022爱分析 · IT运维厂商全景报告》
- 一张图深入的理解FP/FN/Precision/Recall
- Redis master-slave and sentinel master-slave switchover are built step by step
- what‘s the meaning of inference
- [tpm2.0 principle and Application guide] Chapter 9, 10 and 11
- 怎么在手机上买股票开户 股票开户安全吗
- What does "true" mean
- Do you know all four common cache modes?
- testing and SQA_ Dynamic white box test [easy to understand]
- 2022上半年朋友圈都在传的10本书,找到了
猜你喜欢
![[tpm2.0 principle and Application guide] Chapter 16, 17 and 18](/img/7a/b16549590e6445d9199c8000d47d36.png)
[tpm2.0 principle and Application guide] Chapter 16, 17 and 18

抢占周杰伦

cmd命令进入MySQL时报服务名或者命令错误(傻瓜式教学)

【RT-Thread env 工具安装】

Install mysql8 for Linux X ultra detailed graphic tutorial

Version 2.0 of tapdata, the open source live data platform, has been released

Kirin Xin'an joins Ningxia commercial cipher Association

Creative changes brought about by the yuan universe

Kunpeng developer summit 2022 | Kirin Xin'an and Kunpeng jointly build a new ecosystem of computing industry

【牛客网刷题系列 之 Verilog进阶挑战】~ 多bit MUX同步器
随机推荐
ES6笔记一
杰理之关于 TWS 配对方式配置【篇】
指定opencv非标准安装的版本
how to prove compiler‘s correctness
PTA 1102 teaching Super Champion volume
Numpy——2.数组的形状
POJ 1182 :食物链(并查集)[通俗易懂]
SD_ DATA_ SEND_ SHIFT_ REGISTER
虚拟数字人里的生意经
[information security laws and regulations] review
爬虫实战(七):爬王者英雄图片
2022.07.05
【Base64笔记】「建议收藏」
Flipping game (enumeration)
鸿蒙智能家居【1.0】
杰理之关于 TWS 交叉配对的配置【篇】
PV静态创建和动态创建
脑洞从何而来?加州大学最新研究:有创造力的人神经连接会「抄近道」
Specify the version of OpenCV non-standard installation
Jerry's headphones with the same channel are not allowed to pair [article]