app设计素材网站,app制作软件排名,wordpress 表单js改变,网站建设wordpress比较展开全部需要注意#xff0c;官方放在googlecode的测试代码已经旧e69da5e887aa62616964757a686964616f31333337383865了#xff0c;fetch接口实际上需要一个二进制list#xff0c;所以是[]格式#xff0c;而不是格式。以下是增、删、改、查操作的测试代码官方放在googlecode的测试代码已经旧e69da5e887aa62616964757a686964616f31333337383865了fetch接口实际上需要一个二进制list所以是[]格式而不是格式。以下是增、删、改、查操作的测试代码-module(mysql_test).-export([start/0]).start () -% 连接数据库mysql:start_link(conn1, localhost, root, ybybyb, webgame),% 插入数据Result1 mysql:fetch(conn1,[INSERT INTO player SET username test, joined_datetime now(), logined_datetime now();]),io:format(Result1: ~p~n, [Result1]),% 查询数据Result2 mysql:fetch(conn1, []),io:format(Result2: ~p~n, [Result2]),% 更新数据Result3 mysql:fetch(conn1,[UPDATE playerSET username test_playerwhere username test]),io:format(Result3: ~p~n, [Result3]),% 查询数据Result4 mysql:fetch(conn1, []),io:format(Result4: ~p~n, [Result4]),% 删除数据Result5 mysql:fetch(conn1,[DELETE FROM player WHERE username test_player]),io:format(Result5: ~p~n, [Result5]),% 查询数据Result6 mysql:fetch(conn1, []),io:format(Result4: ~p~n, [Result6]),ok.