spainis Posted July 9, 2010 Report Share Posted July 9, 2010 TABULU NOSAUKUMUMIEM IR JĀBŪT VIENSKAITLĪ!!!!!!!!!!!!!!!!!!!!!! :) Quote Link to comment Share on other sites More sharing options...
bubu Posted July 9, 2010 Report Share Posted July 9, 2010 Vispār jau 50 nav cipars, bet gan skaitlis. Quote Link to comment Share on other sites More sharing options...
codez Posted July 9, 2010 Report Share Posted July 9, 2010 Spaini uz 15 gadiem uz darba nometnēm rakt ogles. Quote Link to comment Share on other sites More sharing options...
bfj Posted December 23, 2010 Report Share Posted December 23, 2010 (edited) Ja kodē Symfony PHP ietvarā, izmantojot Propel ORMu tad labāk izskatās, ja tabulu nosaukumi ir vienskaitlī. Jo Propel piedāvā uzģenerēt modeli tabulu klasēm un metodēm, ņemot vērā DB struktūru. Tad, piemēram: UserPeer::getUser() vienas rindas atlasei, UserPeer::getUsers() vairāku rindu atlasei. Bet vispār pa lielam jau tas ir sīkums, kamēr viena projekta ietvaros turies pie viena principa. Edited December 23, 2010 by bfj Quote Link to comment Share on other sites More sharing options...
Gints Plivna Posted December 24, 2010 Report Share Posted December 24, 2010 Ai nu tabulu nosaukumi kā cipari ir bērna šļupsti. Ja gribam čakarēt sevi un citus, tad daram pa īstam. Gints Plivna http://datubazes.wordpress.com Quote Link to comment Share on other sites More sharing options...
NBS Posted December 29, 2010 Report Share Posted December 29, 2010 Arceros jau ka man vienreiz šādi gadījās, bet nevaru atcerēties kā bija. Kā jāraksta datubāzes tabulas nosaukums, ja tas ir cipars? Jo ja rakstu šadi vnk 50, tas nestrādā! if (isset($_POST['l'])) { $query = sprintf(" INSERT INTO 50 bet ja tas ir vārds, tad viss ok! if (isset($_POST['l'])) { $query = sprintf(" INSERT INTO tablename if (isset($_POST['l'])) { $query = sprintf(" INSERT INTO [50] Quote Link to comment Share on other sites More sharing options...
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.