Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不太会 assess 的语法 #209

Open
roy-lau opened this issue Oct 9, 2019 · 0 comments
Open

不太会 assess 的语法 #209

roy-lau opened this issue Oct 9, 2019 · 0 comments

Comments

@roy-lau
Copy link

roy-lau commented Oct 9, 2019

第一个:

image

DELETE
			a
			FROM
				[dbo].[PAT_FOLLOW_UP] AS a
				LEFT JOIN [dbo].[PAT_FOLLOW_UP_TREAT] AS b ON a.FU_TIMES= b.FU_TIMES
				LEFT JOIN [dbo].[PAT_FOLLOW_UP_RESULT] AS c ON a.FU_TIMES= c.FU_TIMES
			WHERE
				a.FOLLOW_UP_DATE = ''
				AND a.FU_REASON = ''`

我想删除三个表中根据 WHERE 条件中查询到的数据,但是报了 语法 错误。那位大佬知道应该怎么改吗?

第二个:

image

我想查询所有 FOLLOW_UP_DATE 为空的数据,以验证上边删除是否成功了。但是报了 数据类型 错误,请问 access 中的时间格式应该怎么写?

我上面的代码在 SQL server 中是可以运行成功的。但是 access的语法好像和 SQL server 中的不太一样,有没有什么学 access 语法的教程可以推荐下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant