Web前端最全Oracle基本语法整理_pg set grammar oracle(2),2024年最新前端项目流程面试题

前端资料汇总

开源分享:【大厂前端面试题解析+核心总结学习笔记+真实项目实战+最新讲解视频】

我一直觉得技术面试不是考试,考前背背题,发给你一张考卷,答完交卷等通知。

首先,技术面试是一个 认识自己 的过程,知道自己和外面世界的差距。

更重要的是,技术面试是一个双向了解的过程,要让对方发现你的闪光点,同时也要 试图去找到对方的闪光点,因为他以后可能就是你的同事或者领导,所以,面试官问你有什么问题的时候,不要说没有了,要去试图了解他的工作内容、了解这个团队的氛围。
找工作无非就是看三点:和什么人、做什么事、给多少钱,要给这三者在自己的心里划分一个比例。
最后,祝愿大家在这并不友好的环境下都能找到自己心仪的归宿。

crate table student
(
sid char(5) not null primary key,
sname ...
);

Alter table

alter table student add sclass char(50);
alter table student modify sclass varchar2(50);
alter table student rename column sclass to stel;
alter table student drop column stel;
alter table student add constranint uk_Sname unique(Sname);

Truncate table

truncate table 表名;
删除所有记录,但保存表结构,并且不写日志。

Drop table

drop table 表名;

Rename table

rename student to student1;

Comment

comment on table student is '用于存储学生信息';
comment on column student.sname  is '学生姓名 ';

Select comment

select comments from user_tab_comments where table_name='student';

//查看表注释

select comments from user_col_comments where table_name='student';

//查看字段注释

Create table and Create constraint

create table class_table
(
cid number (10) primary key ,
cname varchar2(30) not null,
cdate date 
);

create table student_table 
(
sid number (10) primary key,
classid number(10) references class_table(cid),
sno varchar2(30) unique,
sname varchar2(30) not null,
sage number(3) check(sage>0 and sage<150),
saddress varchar2(100) default('地址不详');
);

update,delete,select,insert

update stu set sage=21 where sid =1;

delete from stu where sid =2;

select *  from student_table;
select *  from stu where sid =4;

insert into stu values(5,'10002','abc',20);

Savepoint and rollback

savepoint x1;
rollback to x1;

Distinct

select distinct sclass from t_student;

选择无重复的。

Order by

select * from t_score where sid ='10002' order by score desc; 

Like

select * from t_student where sname like '姜%';

Create table use as

create table t_stubak as seclect * from t_student;
create table t_stuclass1 as select * from t_student where Sclass=1;

Connection select

part1:

select sname ,cname ,score from t_student
join t_score 
on t_student.sid=t_score.sid
join t_sourse 
on t_course.cid = t_score.cid;

part2:

select sname ,cname ,score from t_student ,t_scourse,t_score
where t_student.sid=t_score.sid and t_course.cid=t_score.cid;

rename some table

select sname ,cname from t_student t1,t_scourse t2 
where t1.sid=t2.sid;

左外联接:

左外联接就是将左表作为主表,结果集中除了满足联接条件的记录外,还有主表中不满足条件的记录

select * from t_teacher left join t_teachcourse
on t_teacher.tid = t_teachcourse.tid;

右外联接:

右外联接就是将右表作为主表,结果集中除了满足联接条件的记录外,还有主表中不满足条件的记录(和左外联接相对)

Select * from t_teachcourse  right join t_teacher
  On t_teachcourse.tid = t_teacher.tid;

全联接:

全联接就是结果集中除了满足联接条件的记录外,还有左、右表中不满足条件的记录

Select * from t_teacher  full join _teachcourse 
  on t_teacher.tid = t_teachcourse.tid;

交叉链接:

select * from t_student cross join t_course;

分组聚合:

select max(chours) as max_chours from t_course;

[NOT]IN 子查询:

select * from t_course where cid in (select cid from t_teachcourse);

Exists子查询:

select * from t_course where exists (select * from t_teachcourse where t_teachcourse.cid = t_course.cid);

存在查询,子查询不返回任何结果,只产生true或者false。

算术操作符:

select sid ,cid ,score+10 as lastscore from t_score where cid =2;

比较操作符:

select * from t_student where sbirthday <'01-1月-1980';


select * from t_student where sbirthday between '01-1月-1980' and ’31-12月-1980’

检索1980年前出生的,和检索1980年出生的

select * from t_student where sclass in (1,2);

最后

总的来说,面试官要是考察思路就会从你实际做过的项目入手,考察你实际编码能力,就会让你在电脑敲代码,看你用什么编辑器、插件、编码习惯等。所以我们在回答面试官问题时,有一个清晰的逻辑思路,清楚知道自己在和面试官说项目说技术时的话就好了

开源分享:【大厂前端面试题解析+核心总结学习笔记+真实项目实战+最新讲解视频】




###  最后

总的来说,面试官要是考察思路就会从你实际做过的项目入手,考察你实际编码能力,就会让你在电脑敲代码,看你用什么编辑器、插件、编码习惯等。所以我们在回答面试官问题时,有一个清晰的逻辑思路,清楚知道自己在和面试官说项目说技术时的话就好了

[外链图片转存中...(img-4KRoj9C7-1715859982276)]

[外链图片转存中...(img-xZAwJZzz-1715859982277)]


**[开源分享:【大厂前端面试题解析+核心总结学习笔记+真实项目实战+最新讲解视频】](https://bbs.csdn.net/forums/4304bb5a486d4c3ab8389e65ecb71ac0)**

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值