Last_Error: Error 'FUNCTION pwchain.f_sequence does not exist' on query.Defaultdatabase:'pwchain'. Query: 'INSERT INTO nb_user(adminAccountID,netbid,userType,userName,password,setupTm,updateTm) SELECT f_sequence(1300),'3301080062',1,'admin','4QrcOUm6Wau+VuBX8g+IPg==',1397460800060,1397460800060 FROM dual WHERE NOT EXISTS (SELECT * FROM nb_user WHERE netbid='3301080062' AND userName='admin') limit 1'
Skip_Counter: 0
Exec_Master_Log_Pos: 418698691
Relay_Log_Space: 1556378144
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 1305
Last_SQL_Error: Error 'FUNCTION pwchain.f_sequence does not exist' on query.Defaultdatabase:'pwchain'. Query: 'INSERT INTO nb_user(adminAccountID,netbid,userType,userName,password,setupTm,updateTm) SELECT f_sequence(1300),'3301080062',1,'admin','4QrcOUm6Wau+VuBX8g+IPg==',1397460800060,1397460800060 FROM dual WHERE NOT EXISTS (SELECT * FROM nb_user WHERE netbid='3301080062' AND userName='admin') limit 1'
1 row inset(0.00 sec)
错误的提示是 找不到pwchain.f_sequence 这个函数,登录从数据库
点击(此处)折叠或打开
mysql>showcreate FUNCTION pwchain.f_sequence\G
ERROR 1305 (42000): FUNCTION f_sequence1 does not exist
ROUTINE_DEFINITION:begin declare oid int;updatesequenceset id = id + 1 where idtype = itype;select id into oid fromsequencewhere idtype = itype;return oid;end