Error met at attempts to write stored procedure in MySQL[SOLVED]
2015-05-23 11:23
736 查看
Error Information:
No database Selected
Forget to pass database name parameter and company name parameter to my sql script
…so much for now~
Edit @5.24
Hooray~I found that I shouldn’t have called stored procedure in “.sql” script using command line like
or similar ways,
see this link http://stackoverflow.com/questions/18240194/how-to-script-out-stored-procedures-to-files
Since stored procedure aren’t “stored” as a separate file but in the database.
I should indicate call procedure explicitly.
Edit @5.24 7:00pm:
Since there is no thing such as a file to save procedure, MySQL provide a method of
No database Selected
Forget to pass database name parameter and company name parameter to my sql script
…so much for now~
Edit @5.24
Hooray~I found that I shouldn’t have called stored procedure in “.sql” script using command line like
mysql -u username -p -e"para1=xxx,[para2=xxx]" < script.sql
or similar ways,
see this link http://stackoverflow.com/questions/18240194/how-to-script-out-stored-procedures-to-files
Since stored procedure aren’t “stored” as a separate file but in the database.
I should indicate call procedure explicitly.
Edit @5.24 7:00pm:
Since there is no thing such as a file to save procedure, MySQL provide a method of
show create procedure <name>to use MySQL
相关文章推荐
- How to detect a rollback in MySQL stored procedure?
- How to throw an error in MySql procedure?
- Resolving a Fatal error: Call to undefined function mysql_connect() in RedHat
- DM642使用ccs3.1时GEL的问题:GEL: Error calling OnPreFileLoaded(): memory map prevented write to target memory at 0x01800054
- ssh开发中插入数据时遇到 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right
- EF 接收OUTPUT参数的方法 How to Retrieve Stored Procedure Output Parameters in Entity Framework
- error: 'Failed to open logfile '/var/lib/mysql_ndbd/data/ndb_2_out.log' for write
- How to debug stored procedure/function in TOAD
- [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s
- ORA-00604: error occurred at recursive SQL level 1 ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
- How to Fix (errno: 24, error: 17) in MySQL
- MySQL Error Handling in Stored Procedures 2
- Use of delimiter on Stored Procedure in MySQL
- Mybatis报错(二)You have an error in your SQL syntax; check the manual that corresponds to your MySQL se
- ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error:
- Error: At least one module has an unresolved import due to a missing export function in an implicitl
- [MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for
- How to call stored procedure in Hibernate
- java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for