Haskell:数据库.MySQL.Base
insert_Producto = do
conn <- connect
defaultConnectInfo {ciUser = "root", ciPassword = "", ciDatabase = "prueba"}
oks <- executeMany conn "delete from producto"
加载模块:
Conexion.hs:27:5: error:
The last statement in a 'do' block must be an expression
oks <- executeMany conn "delete from producto"
|
27 | oks <- executeMany conn "delete from producto"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
我尝试加载模块,但它标记我错误。有谁知道正确的方法是什么?