如果我在 iOS App Store 上有应用程序的应用程序 ID,我如何找到包名称?
例如,如果我知道应用程序 ID 是 457446957,我怎么知道这是什么应用程序(在本例中为 Jetpack Joyride):
https://itunes.apple.com/us/app/jetpack-joyride/id457446957?mt=8&isWebExpV2=true&dataOnly=true
需要找到意大利语翻译的所有单词,如果意大利语不存在,则需要使用西班牙语(默认语言).我不能使用多个查询,并且存在条件(技术限制)
话
id|name
-------
1|Dog
2|Cat
Run Code Online (Sandbox Code Playgroud)
翻译
id|word_id|translation|language
-------------------------------
1| 1| Perro|es
2| 1| Cane |it
3| 2| Gatto|es
Run Code Online (Sandbox Code Playgroud)
结果:
id|name|translation|language
1| Dog| Cane|it
2| Cat| Gatto|es
Run Code Online (Sandbox Code Playgroud)
SELECT * FROM words LEFT JOIN translation ON words.id = translation.word_id WHERE language = 'it' OR (language = 'es' AND NOT EXISTS(SELECT * FROM translation WHERE word_id = words.id AND language = 'it'))
Run Code Online (Sandbox Code Playgroud)
这段代码返回我需要的所有内容,但我不能在我的情况下使用存在条件的地方