xPtv45z Posted June 12, 2013 Report Share Posted June 12, 2013 Kāds tam sakars ar aprobežotību? Autors parasīja risinājumu PHP un Mysql, viņam tagad citas valodas un citus DBMS mācīties, lai atrastu/saprastu sev nepieciešamo? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 12, 2013 Report Share Posted June 12, 2013 Nē, bet nebūtu arī slikti zināt par tādu esamību. Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 12, 2013 Report Share Posted June 12, 2013 Who cares man? That's totally offtopic. Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted June 12, 2013 Report Share Posted June 12, 2013 Nu viņš zinās par tādu esamību. Ko tālāk? Kāds viņam ieguvums pašreizējai problēmai no tā? Viņam risinājumu kurš Javā pēc id iegūst value no PostgreSQL implementēt savā lapā, kas būvēta uz php? :D Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted June 13, 2013 Report Share Posted June 13, 2013 `SELECT * FROM users WHERE id = 1;` Par ` un ; nepieciešamību vai lietojumu vēl var padiskutēt. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 14, 2013 Report Share Posted June 14, 2013 Semikolus lieku, jo ar raw SQL saskaros tikai caur konsoli un tur tos diemžēl vajag. Par tikiem — vajadzētu ielikt, _just to be sure_. Quote Link to comment Share on other sites More sharing options...
Kavacky Posted June 14, 2013 Report Share Posted June 14, 2013 Tikai ne jau tā, bet gan: SELECT * FROM `table` WHERE `column`=value Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 14, 2013 Report Share Posted June 14, 2013 Es arī rakstu MySQL tikai ar backtickiem (stulbi izskatās, ka tev ir 1 kolonna, kurai vajag backticks, piem, index, un pārējās bez), kā arī lieku atstarpes abpus =. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 14, 2013 Report Share Posted June 14, 2013 `` apkārt kkādam kodam ir Markdown sintakse. Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 14, 2013 Report Share Posted June 14, 2013 Par to gan neko neesmu dzirdējis. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 14, 2013 Report Share Posted June 14, 2013 http://daringfireball.net/projects/markdown/syntax Izmantoju Markdownu, jo, tas, reāli, ir atbalstīts visur — tas nekas, ka nerenderē — tāpat lasāmi —, plus, neciešu WYSIWYG. Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 14, 2013 Report Share Posted June 14, 2013 Nu labi, tas principā ir kārtējais offtopic, tāpēc nejautāšu, kam tas vajadzīgs. Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted June 14, 2013 Report Share Posted June 14, 2013 Es arī rakstu MySQL tikai ar backtickiem (stulbi izskatās, ka tev ir 1 kolonna, kurai vajag backticks, piem, index, un pārējās bez), kā arī lieku atstarpes abpus =. http://stackoverflow.com/questions/5952677/should-i-use-backticks-or-not-when-escaping-keywords-in-mysql Nu labi, tas principā ir kārtējais offtopic, tāpēc nejautāšu, kam tas vajadzīgs. Wiki teksts, piemēram. Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 14, 2013 Report Share Posted June 14, 2013 (edited) http://stackoverflow.com/questions/5952677/should-i-use-backticks-or-not-when-escaping-keywords-in-mysql Vēl viena lieta ar backtickiem ir tāda, ka tu vari droši meklēt `colName` zinot, ka rezultātos būs tikai sql query. Edited June 14, 2013 by jurchiks Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 14, 2013 Report Share Posted June 14, 2013 Nē, būs Markdown un reST. Nemaz nerunāsim, ka PHP ir sintakse ar bektikiem ( `rm -rf /tmp/*`). 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.