牛客404425958号
牛客404425958号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客404425958号的博客
全部文章
(共214篇)
题解 针对actor表创建视图actor_name_view
create view actor_name_view as select first_name as first_name_v, last_name as last_name_v from actor; select * from actor_name_vi...
2024-10-23
0
40
创建唯一索引和普通索引
/*创建表时创建索引: create table [表名]( [属性名1] [数据类型1] [约束1], ... [属性名n] [数据类型n] [约束n], [unique | fulltext | spatial] index|key [索引名]( [属性名1] [(长度)] [as...
2024-10-23
0
60
创建唯一索引和普通索引
/*创建表时创建索引: create table [表名]( [属性名1] [数据类型1] [约束1], ... [属性名n] [数据类型n] [约束n], [unique | fulltext | spatial] index|key [索引名]( [属性名1] [(长度)] [as...
2024-10-23
0
92
题解 | #创建一个actor_name表#
create table actor_name( select first_name,last_name from actor );
2024-10-23
0
47
题解 | #创建一个actor_name表#
create table actor_name( first_name varchar(45) not null, last_name varchar(45) not null ); insert into actor_name select first_name,last_nam...
2024-10-23
0
49
题解 | #批量插入数据,不使用replace操作#
/* insert into 数据库会检查主键,主键重复会报错; replace into 插入替换数据,需求表中有PrimaryKey,或者unique索引,如果数据库已经存在数据,则用新数 据替换,如果没有数据效果则和insert into一样; ...
2024-10-23
0
75
题解 | #批量插入数据#
insert into actor(actor_id,first_name,last_name,last_update) values(1,'PENELOPE','GUINESS','2006-02-15 12:34:33'), (2,'NICK','WAHLBERG','2006-02...
2024-10-22
0
45
题解 | #创建一个actor表,包含如下列信息#
create table actor( actor_id smallint(5) not null, first_name varchar(45) not null, last_name varchar(45) not null, last_update date n...
2024-10-22
0
64
这个标题52个字,把放不下的放到天上去吗??????????
select title,description from film where film_id in (select film_id from film_category where category_id=(select category_id from ca...
2024-10-22
0
57
题解 | 使用join查询方式找出没有分类的电影id以及名称
select film_id,title from film left join film_category using(film_id) left join category using(category_id) where category_id is null
2024-10-22
0
53
首页
上一页
13
14
15
16
17
18
19
20
21
22
下一页
末页