Global web icon
stackoverflow.com
https://stackoverflow.com/questions/14606900/mysql…
MySQL, create a simple function - Stack Overflow
CREATE PROCEDURE getUser(gU INT) SELECT * FROM Company WHERE id_number = gU; CALL getUser(2); I need some help making this into a MySQL function. What are the pros and cons of using a function over a procedure?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/6740932/mysql-…
sql - MySQL CREATE FUNCTION Syntax - Stack Overflow
I am trying to create a function in MySQL: Here is the SQL code: CREATE FUNCTION F_Dist3D (x1 decimal, y1 decimal) RETURNS decimal DETERMINISTIC BEGIN DECLARE dist decimal; SET dist = SQRT(x1...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/3744209/mysql-…
MySQL procedure vs function, which would I use when?
CREATE PROCEDURE proc_name ([parameters]) [characteristics] routine_body CREATE FUNCTION func_name ([parameters]) RETURNS data_type // diffrent [characteristics] routine_body A MySQL extension for stored procedure (not functions) is that a procedure can generate a result set, or even multiple result sets, which the caller processes the same way as the result of a SELECT statement. However, the ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/10595037/is-it…
Is it possible to have function-based index in MySQL?
It is difficult to find functional index document in Mysql website, it is in the name of functional key parts And We cannot drop the column which is having functional index.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/3997957/mysql-…
MySQL permissions -- can't create functions even with the 'CREATE ...
MySQL permissions -- can't create functions even with the 'CREATE ROUTINE' grant Asked 15 years, 1 month ago Modified 15 years, 1 month ago Viewed 24k times
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/981451/can-i-c…
sql - Can I create a One-Time-Use Function in a Script or Stored ...
In SQL Server 2005, is there a concept of a one-time-use, or local function declared inside of a SQL script or Stored Procedure? I'd like to abstract away some complexity in a script I'm writing, but it would require being able to declare a function.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/26314741/how-t…
How to create a function using MySQL Workbench?
I am trying to create a function in MySQL Workbench by rightclicking on 'Functions' > 'Create Function'. I insert this text to create the function into the window but it says there are errors in sql at the last line missing 'if'.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/23421771/how-t…
How to return table from MySQL function - Stack Overflow
CREATE PROCEDURE myProcedure ( id INT ) BEGIN select * from board; END // check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/11754781/how-t…
sql - How to declare a variable in MySQL? - Stack Overflow
How to declare a variable in mysql, so that my second query can use it? I would like to write something like:
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/26015160/deter…
mysql - DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and ...
There are two ways to fix this: Execute the following in the MySQL console: SET GLOBAL log_bin_trust_function_creators = 1; Add the following to the mysql.ini configuration file: log_bin_trust_function_creators = 1; The setting relaxes the checking for non-deterministic functions. Non-deterministic functions are functions that modify data (i.e. have update, insert or delete statement (s)). For ...