If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
about how to comment out lines in user-defined functions
Hello ALL,
I am using MySQL 5.0.26. If I comment a single line using '//' in a user-defined function, there will be error message occurring when using 'source' to 'install' the function. The error message occurs also when the '/*' and '*/' span more than one code lines.
offhand I'd guess because MySQL has chosen to implemnent // as thge comment symbol. after all the commentis being used in MySQL's SQL rahther than C, C++, JAVA or any of the C wannabee's
soem SQL's use --, some {, some ' each to their own...
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton