As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I want to write a stored procedure to increment the value of an int column by one. Looks like a very simple task, but not for someone without ANY experience with stored procedures.
To do that I looked for tutorials and code samples, and found a few, but sure there are better ones out there. Do you know any?
The ones I found:
http://dev.mysql.com/doc/refman/5.0/en/call.html (code sample)
http://www.databasejournal.com/features/mysql/print.php/3525581
http://www.mysql.com/news-and-events/newsletter/2004-01/a0000000297.html
http://www.devshed.com/c/a/MySQL/A-DIY-Approach-to-Stored-Procedures-in-MySQL/
http://www.phpbits.info/mysql-tutorial/stored-procedures-in-mysql/
http://www.kbedell.com/2009/03/02/a-simple-example-of-a-mysql-stored-procedure-that-uses-a-cursor/
It is in german but it is a good one.
http://www.tutorials.de/forum/sql-tutorials/179510-stored-procedures-mysql-5-a.html
In english I think the stuff at this place is fine. You got many different tutorials.
http://www.mysqltutorial.org/mysql-stored-procedure-tutorial.aspx
I'd recommend picking up a copy of MySQL Second Edition by Larry Ullman. He has a good overview of stored procedures. That coupled with the tutorials you've already found should give you a good start with them.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am seeking some more knowledge about MySQL queries. I've been working on building myself as a programmer and now I need to know more about MySQL advanced techniques.
I need to learn about MySQL JOIN queries, CASE, MAX..., everything that I don't already know.
I would really appreciate some links to useful articles with in-depth explanations of advanced MySQL. If you know any good video tutorial about learning MySQL, suggest it, I'm gonna purchase it.
Sorry if this question seems useless to any of you, but it's important to me since I can't keep asking SQL related questions here, I have to learn to do stuff myself.
Thanks.
Having picked up on a couple keywords (video tutorial, purchase), combined with your interest in building your skill set, I'd recommend looking into a subscription on http://www.lynda.com/
Depending on the programming language you're using in conjunction with MySQL, I'd also recommend looking into PDO (assuming you aren't already familiar with it).
Some helpful PDO articles, to supplement your existing knowledge of MySQL:
http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
http://www.phpro.org/tutorials/Introduction-to-PHP-PDO.html
http://returnsuccess.com/post/15-PDO-class-Object-Oriented-PHP
I'd be more helpful, but I can only provide as much information as the question itself.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm really impress by jsfiddle.net where we get to try out html/css/js right in front of us.
Does anyone know of a similar set of screens for sql where you could get to try out commands and build tables in a similar 'virtual' environment.
Of course I would like it to support all the different flavors too - mySQL, SQLserver, DB2, Oracle, Postgres, etc. And each of their various versions too please (yes I am smiling and really wishing here).
This might be one option that covers all the vendors, but you can't create your own tables etc.http://www.sqlzoo.net/h.htm
Another is http://sqlize.com/ which does let you create tables, though it is only mySQL.
You might try ideone. I haven't used it for SQL, but it's one of the listed options.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
So I've been reading up on the D programming language for a while, and it really seems like a cool new language to learn. My impression is that it combines the power of C with intuitive syntax and garbage collection. What more could I want? Ok...so these accounts I've been reading are probably a bit idealized.
However, I just downloaded a D compiler and am looking to learn. I feel like a great way to learn might be to just get hands on in a project. I have no idea where to start though. Where could I find some easy, small D projects (that might actually contribute something to the world)? Or if not getting hands on in something, how would you recommend learning?
what about a quick tutorial,
please check the following link:
http://www.dprogramming.com/tutorial.php
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I was looking for a open source library for generating automated summaries out of few words. For ex: if two qualities are given of a person a) good thinking skills b) bad handwriting, i need to generate a sentence like "Bob has good thinking skills however needs to improve on his handwriting". I need to know if any open source library could help me achieve it even partially.
Thanks for help!
-- Mohit
You could start with MEAD. Not sure what sort of mileage you'll get with single-sentence summarization, but you may be able to do some post-processing on the output and manage it.
It would take a bit of work, but you could also construct something out of NLTK and one or more the associated databases (eg. WordNet). Python, open source.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
As I know these two databases are the most popular and the best, but which one is the best? And what are the benefits to use one or other? Currently I use MySQL and I don't really have any experiences with Oracle, but I want to know what's the best choice and why?
I mean how fast they are, what kind of features they have, how easy is to use them with php, and so one, you know better :)
Some real examples:
1.000.000 users come to my
website, they visit 100 pages every day and each
page is 1mb's , now which
on is the faster?
I run a query on the database to
search for 10.000 users, now which
one is faster?
See, when you add in "how easy to use with PHP," I'm going to have to go with MySQL. At least, you will find the most resources online to help you on your journey.