由于
UNIOn消除了重复的值,因此如果两个计数恰好相同,则将消除一个,并且只对一个求和。尝试
UNIOn ALL改用。
SELECt sum(count) FROM(SELECt COUNT(*) as count FROM artistUNIOn ALLSELECt COUNT(*) as count FROM personsUNIOn ALLSELECt COUNT(*) as count FROM track)
欢迎分享,转载请注明来源:内存溢出
由于
UNIOn消除了重复的值,因此如果两个计数恰好相同,则将消除一个,并且只对一个求和。尝试
UNIOn ALL改用。
SELECt sum(count) FROM(SELECt COUNT(*) as count FROM artistUNIOn ALLSELECt COUNT(*) as count FROM personsUNIOn ALLSELECt COUNT(*) as count FROM track)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)