您不能在查询中使用拆分,而可以使用Mid和Instr。
Mid(USSenators,Instr(USSenators,";")+1)
Mid(USSenators,1,Instr(USSenators,";")-1)
上面的第二 行返回约翰·史密斯的第一条记录上面的第一行返回约翰·史密斯的第一条记录
您将需要注意空值。
Access数据库表-拆分字段SQL命令
您不能在查询中使用拆分,而可以使用Mid和Instr。
Mid(USSenators,Instr(USSenators,";")+1)
Mid(USSenators,1,Instr(USSenators,";")-1)
上面的第二 行返回约翰·史密斯的第一条记录上面的第一行返回约翰·史密斯的第一条记录
您将需要注意空值。