erlang如何拼接字符串哇
erlang吧
全部回复
仅看楼主
level 11
a651944226
楼主
erlang如何拼接字符串哇,类似于这样的Sql="update mit_acs set sysname='"+Sysname+"' where acdn=1“
2013年05月24日 00点05分
1
level 11
a651944226
楼主
erlang中也有两种方式
第一种
Sql=lists:concat(["update mit_acs set sysname='",Sysname,"'
where acdn=1"]),
第二种
Sql=io_lib:format("update
mit_acs set sysname= ~s where acdn= ~p",
[<<"345245">>, 1]).
2013年05月24日 00点05分
2
level 3
hcksfch
直接 ++
2013年05月25日 13点05分
4
level 4
evoup
2013年07月18日 01点07分
5
level 1
zhangbowen728
2015年04月17日 09点04分
6
level 2
Juniornice
字符串的拼接用string:concat().
2015年04月23日 05点04分
7
zalman学霸
这个函数是实际就是++操作
2015年05月14日 10点05分
1