关系代数:σ π × ÷ ∪ ∩ − ⋈(⟗ ⟕ ⟖)

显示效果:

σ s n o = 1 ( S t u d e n t ) \sigma_{sno = 1}(Student) σsno=1(Student)
σsno=1(Student)
σ s n o = 1 ∧ s a g e > 18 ∨ s s e x = " F " ( S t u d e n t ) \sigma_{sno = 1 \wedge sage >18 \vee ssex="F"}(Student) σsno=1sage>18ssex="F"(Student)
σsno=1∧sage>18∨ssex=“F” (Student)
Π s n o , c n o ( S t u d e n t ) \Pi_{sno,cno}(Student) Πsno,cno(Student)
πsno,cno (Student)
S t u d e n t ⋈ S C Student \Join SC StudentSC
S t u d e n t ⋈ S C Student \bowtie SC StudentSC
Student⋈SC
S t u d e n t ⋈ S t u d e n t . S n o = S C . S n o S C Student \underset{Student.Sno=SC.Sno}\Join SC StudentStudent.Sno=SC.SnoSC
Student ⟗ SC
Student ⟕ SC
Student ⟖ SC
S t u d e n t × S C Student \times SC Student×SC
Student × SC
S C ÷ K SC \div K SC÷K
SC ÷ K
R ∪ S R \cup S RS
R∪S
R ∩ S R \cap S RS
R∩S
R − S R - S RS
R−S
Π S n a m e ( Π s n o ( σ C p n o = ′ 5 ′ ( C o u r s e ) ⋈ S C ) ⋈ Π S n o , S n a m e ( S t u d e n t ) ) \Pi_{Sname}(\Pi_{sno}(\sigma_{Cpno='5'}(Course)\Join SC)\Join \Pi_{Sno,Sname}(Student)) ΠSname(Πsno(σCpno=5(Course)SC)ΠSno,Sname(Student))
πSnamesnoCpno=′5′(Course) ⋈ SC) ⋈ π Sno,Sname (Student))

对应的代码:

$\sigma_{sno = 1}(Student)$
σ~sno=1~(Student)
$\sigma_{sno = 1 \wedge sage >18 \vee ssex="F"}(Student)$
σ~sno=1∧sage>18∨ssex="F"~ (Student)
$\Pi_{sno,cno}(Student)$
π~sno,cno~ (Student)
$Student \Join SC$
$Student \bowtie SC$
Student⋈SC
$Student \underset{Student.Sno=SC.Sno}\Join  SC$
Student ⟗ SC
Student ⟕ SC
Student ⟖ SC
$Student \times SC$
Student × SC
$SC \div K$
SC ÷ K
$R \cup S$
R∪S
$R \cap S$
R∩S
$R - S$
R−S
$\Pi_{Sname}(\Pi_{sno}(\sigma_{Cpno='5'}(Course)\Join SC)\Join \Pi_{Sno,Sname}(Student))$
π~Sname~ (π~sno~ (σ~Cpno=′5′~(Course) ⋈ SC) ⋈ π ~Sno,Sname~ (Student))
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值