--判断字段为中文- “len(字段)=5”-
SELECT RegistrantsID, Company, Job, Address FROM dbo.RegistrantsWHERE (RegistrantsID IN (SELECT RegistraterID FROM dbo.tbAbstractInfo)) AND (LEN(UNICODE(Job)) = 5)
--Access取字符串--
从左边开始获取Email字段的“;”前的字符串
Left([Email],InStr([Email],";")-1)从右边开始获取Email字段的:总长度 -“;”的位置 = 第一个“;”后面的字符串
Right([Email],Len([Email])-InStr([Email],";"))
---Access 去空格、回车、tab符号----
去空格:Trim([tel])
去回车符:Trim(Replace(Replace([tel],Chr(10),""),Chr(13)," "))
去 Tab符号 :Trim(Replace([tel],Chr(9)," "))
注意筛选非空值进行去回车和去Tab符操作
以上三者可以连成一条语句:
Trim(Replace(Replace(Replace([Email],Chr(9)," "),Chr(10),""),Chr(13)," "))