早教吧作业答案频道 -->英语-->
writeaquerysql~toverifywhetherthecombinationofthetwocolums(eg.DateandName)istheprimary/Foreignkeyofthetable?这是一个面试问题当时看到有点儿懵回来google也没找到答案
题目详情
write a query sql~
to verify whether the combination of the two colums (eg.Date and Name) is the primary/Foreign key of the table?
这是一个面试问题 当时看到有点儿懵 回来google也没找到答案
to verify whether the combination of the two colums (eg.Date and Name) is the primary/Foreign key of the table?
这是一个面试问题 当时看到有点儿懵 回来google也没找到答案
▼优质解答
答案和解析
you can try to insert two records which have the same combination value,
if the system allows you to do so, the two colums are certainly not the PK or FK
if the operation is rejected, then you'll know the answer~
this method is only for trial and error :)
if you want to do this in batches, I'm afraid I cannot help you then.
Try flyingFish211's sql~
if the system allows you to do so, the two colums are certainly not the PK or FK
if the operation is rejected, then you'll know the answer~
this method is only for trial and error :)
if you want to do this in batches, I'm afraid I cannot help you then.
Try flyingFish211's sql~
看了 writeaquerysql...的网友还看了以下:
在一个不传热的固定容积的密闭容器中,可逆反应mA(g)+nB(g)→(可逆符号)pC(g)+qD( 2020-05-13 …
高中数学选修2-2导数部分习题已知关于x的函数g(x)=2/x+lnx f(x)=x²+g(x) 2020-05-16 …
当F浮——G物时,物体上浮,(p物——p液)上浮的最终结果是物体处于漂浮状态,当物体漂浮时,F浮— 2020-05-16 …
怎么得出G面试,另外三个是谁?F、G、J、K、L和M六人应聘某个职位.只有被面试才能被聘用.以下条 2020-06-08 …
一个人蹲在磅秤上不动时,称其重力为G,当此人突然站起时,在整个站起过程中,磅秤的读数为()A.先大 2020-07-04 …
一个人蹲在磅秤上不动时,称其重力为G,当此人突然站起时,在整个站起过程中,磅秤的读数为()A.先大 2020-07-15 …
一个人蹲在磅秤上不动时,称其重力为G,当此人突然站起时,在整个站起过程中,磅秤的读数为:A.先小于 2020-07-15 …
已知函数f(x)=(1/2)的x次方(x>0)和定义在R上的奇函数g(x),当x>0时,g(x)= 2020-07-15 …
293已知定义在(-2,2)上的偶函数g(x),当x≥0时,g(x)...拜托各位大神已知定义在( 2020-07-19 …
对大于0的自然数n规定一种运算“G”:①当n是奇数时,G(n)=3n+1;②当n是偶数时,G(n) 2020-07-22 …