Data Mining stories
Sunday, November 25, 2012
Stored procedures in MySQL
Some links with useful examples for writting stored procedures:
"
Simple Example of a MySQL Stored Procedure that uses a cursor
", a nice article explaining how to use
cursor
and how to
debug
a stored procedure in mysql
Integer division in Java
The division of two integers in Java is also an integer.
E.g.
int a=5;
int b=10;
System.out.println(a/b);
It will output 0.
One could use double instead.
E.g.
double a=5;
double b=10;
System.out.println(a/b);
It will output 0.5.
More here:
http://stackoverflow.com/questions/8110019/java-divison-with-two-integer-operands-not-working
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)