私は Haskell の完全な初心者ですが、それを克服することを決意しているので、もう一度助けを求めています。
使用:
fetchData2 = do
conn <- connectSqlite3 "dBase.db"
statement <- prepare conn "SELECT * FROM test WHERE id > 0"
execute statement []
results <- fetchAllRows statement
print results
戻り値:
[[SqlInt64 3,SqlByteString "Newco"],[SqlInt64 4,SqlByteString "Oldco"],[SqlInt64 5,SqlByteString "Mycom"],[SqlInt64 4,SqlByteString "Oldco"],[SqlInt64 5,SqlByteString "Mycom"]]
Int
このデータをandにクリーンアップする賢い方法はありますか。つまり、タイプand を[Char]
省略します。SqlInt64
SqlByteString