当前位置:网站首页>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;边栏推荐
- 【MIME笔记】
- Kunpeng developer summit 2022 | Kirin Xin'an and Kunpeng jointly build a new ecosystem of computing industry
- AI writes a poem
- Tips and tricks of image segmentation summarized from 39 Kabul competitions
- Kirin Xin'an with heterogeneous integration cloud financial information and innovation solutions appeared at the 15th Hunan Financial Technology Exchange Conference
- 指定opencv非标准安装的版本
- 99% of people don't know that privatized deployment is also a permanently free instant messaging software!
- 50亿,福建又诞生一只母基金
- 超分辨率技术在实时音视频领域的研究与实践
- First time in China! The language AI strength of this Chinese enterprise is recognized as No.2 in the world! Second only to Google
猜你喜欢

博睿数据入选《2022爱分析 · IT运维厂商全景报告》

Kirin Xin'an won the bid for the new generation dispatching project of State Grid!

2022.07.04

网易云信参与中国信通院《实时音视频服务(RTC)基础能力要求及评估方法》标准编制...

In 2021, the national average salary was released. Have you reached the standard?

抢占周杰伦

杰理之相同声道的耳机不允许配对【篇】

Redis master-slave and sentinel master-slave switchover are built step by step

648. 单词替换

Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
随机推荐
Borui data was selected in the 2022 love analysis - Panoramic report of it operation and maintenance manufacturers
Command mode - unity
最长公共前缀(leetcode题14)
杰理之开机自动配对【篇】
指定opencv非标准安装的版本
2022.07.04
反爬虫的重点:识别爬虫
[Blue Bridge Cup training 100 questions] sort scratch from small to large. Blue Bridge Cup scratch competition special prediction programming question centralized training simulation exercise question
[HDU] 5248 sequence transformation (greedy + dichotomy) [recommended collection]
Number - number (Lua)
杰理之快速配对,不支持取消配对【篇】
炒股如何开户?请问一下手机开户股票开户安全吗?
手把手教姐姐写消息队列
The strength index of specialized and new software development enterprises was released, and Kirin Xin'an was honored on the list
杰理之测试盒配置声道【篇】
Kirin Xin'an won the bid for the new generation dispatching project of State Grid!
Tips and tricks of image segmentation summarized from 39 Kabul competitions
Do you know all four common cache modes?
CMD command enters MySQL times service name or command error (fool teaching)
SD_ DATA_ RECEIVE_ SHIFT_ REGISTER