yeahz Posted April 17, 2009 Report Posted April 17, 2009 Kā var izvilkt no datubāzes visa kopējo skaitu? Piemēram, ir tabula: id | count | kautKas un dati: 1 | 13 | abc 2 | 7 | abcdefg un tātad, kā lai saskaita tos count (tā lai gala rezultāts būtu 20(13+7=20))? Quote
Grey_Wolf Posted April 17, 2009 Report Posted April 17, 2009 (edited) kā lai saskaita tos count (tā lai gala rezultāts būtu 20(13+7=20))? SELECT SUM('count') AS kopejais_skaits FROM tabulis Edited April 17, 2009 by Grey_Wolf Quote
Grey_Wolf Posted April 17, 2009 Report Posted April 17, 2009 bubu --> jaa tev taisniiba .. atrumaa iemetu :( Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.