卡内码大小端转换=INT(B1/16777216)+INT(MOD(B1, 16777216)/65536)*256+INT(MOD(B1, 65536)/256)*65536+MOD(B1, 256)*16777216
其他软件导出卡内码转换云系统卡内码=INT(B1/16777216)*65536+INT(MOD(B1,16777216)/65536)*16777216+INT(MOD(B1,65536)/256)+MOD(B1,256)*256
wps表读出卡内码转换云系统卡内码 =INT(B1/16777216)*256+INT(MOD(B1, 16777216)/65536)+INT(MOD(B1, 65536)/256)*16777216+MOD(B1, 256)*65536
卡内码逆转换 =INT(A3/16777216)*256+INT(MOD(A3,16777216)/65536)+INT(MOD(A3,65536)/256)*16777216+MOD(A3,256)*65536
id卡前10位转后8位公式:(X为前10位数)
=(MOD(X,256*256))+(MOD(INT(X/(256*256)),256)*100000)
id卡后8位转前10位公式:(A1为后8位数)
8位转10位 =INT(A1/100000)*256*256+(A1-INT(A1/100000)*100000)
宝石ID收费机转换云卡内吗access数据库语句 :
SELECT (255-val(left(Main.CardCode,4)))*100000+(65535-val(right(main.cardcode,5))) AS 卡内码, Main.Name AS 姓名, IIf([Main.Sex]=1,男,女) AS 性别, Main.Money0 AS 余额, Main.PassW AS 消费密码, userdept.DeptName AS 部门名称
FROM Main LEFT JOIN userdept ON Main.userdept = userdept.Class where Main.Money0 >= 0;
|