当前位置:网站首页>Mysql, sqlserver Oracle database connection mode

Mysql, sqlserver Oracle database connection mode

2022-07-07 19:42:00 Aimin20210819

Programming connection mode

sql server The default port number is :1433
URL:"jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbname"

DRIVERNAME:"com.microsoft.jdbc.sqlserver.SQLServerDriver";

mysql The default port number is :3306

URL:jdbc:mysql://localhost:3306/test?         user=root&password=&useUnicode=true&characterEncoding=gbk

DRIVERNAME:"com.mysql.jdbc.Driver";

oracle The default port number is 1521

URL:"jdbc:oracle:thin:@localhost :1521:orcl";

DRIVERNAME:"oracle.jdbc.driver.OracleDriver";

DOS yes Disk Operation System For short , Meaning for Disk operating system

Create a table and add comments  

CREATE TABLE `t_account_phone_pool` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `create_time` datetime DEFAULT NULL COMMENT ' Creation time ',
  `update_time` datetime DEFAULT NULL COMMENT ' Modification time ',
  `is_enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT ' Data available  0: Unavailable ;1: You can use ',
  `is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT ' Logical deletion  0: Not delete ;1: Delete ',
  `create_user` varchar(20) DEFAULT NULL COMMENT ' founder ',
  `update_user` varchar(20) DEFAULT NULL COMMENT ' Modifier ',
  `account_name` varchar(20) NOT NULL COMMENT ' Account name ',
  `phone` varchar(20) NOT NULL COMMENT ' number ',
  `send_limit_count` int(11) NOT NULL COMMENT ' Send limit times ',
  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=' Account number - Number pool table ';

Command to view field comments in the table ( explain )

show full columns from tablename;

原网站

版权声明
本文为[Aimin20210819]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071723479612.html