ZKX's LAB

数据库面试题: 数据库相关面试题

2021-04-23知识1

数据库面试题: create database aaa;create table users(id int NOT NULL AUTO_INCREMENT,user_name char(10),money char(10),add_time datetimePRIMARY KEY(`id`))ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;3.insert into users values(2,'a1','a11',current_date),(3,'a1','a11',current_date),(4,'a1','a11',current_date),(5,'a1','a11',current_date),(6,'a1','a11',current_date),(7,'a1','a11',current_date),(8,'a1','a11',current_date),(9,'a1','a11',current_date),(10,'a1','a11',current_date),(11,'a1','a11',current_date);4.参考第二步5.参考第三步6.select a.username,a.money,b.email,b.user_phone,b.weigh from users a,user_info bwhere a.id=b.id and a.id=XXX(你指定的);7.mysqldump-uroot-p aaa>;/tmp/aaa.sql(需要输入密码)我用的是mysql上的写法

谁有一些关于SQL 数据库的一些面试题?

数据库面试题!!!! 表t 字段 d(varchar8)select RIGHT('00000000'+d,8)from tupdate tset d=RIGHT('00000000'+d,8)

#数据库存储过程面试题#数据库三大范式面试题#数据库迁移面试题#数据库增删改查面试题#sqlserver数据库面试题

随机阅读

qrcode
访问手机版