借助CALL語句,我們可以呼叫MySQL預存程序。為了讓它理解,我們正在呼叫 allrecords() 預存程序 -
mysql> CALL allrecords(); +------+---------+------------+------------+ | id | Name | Address | Subject | +------+---------+------------+------------+ | 100 | Aarav | Delhi | Computers | | 101 | YashPal | Amritsar | History | | 105 | Gaurav | Jaipur | Literature | | 110 | Rahul | Chandigarh | History | +------+---------+------------+------------+ 4 rows in set (0.00 sec) Query OK, 0 rows affected (0.01 sec)
以上是我們如何呼叫MySQL預存程序?的詳細內容。更多資訊請關注PHP中文網其他相關文章!