SQL 2008 Msg 102,级别15,状态1,行2中的Sql脚本错误“。”附近的语法不正确。 [英] Sql Script error in SQL 2008 Msg 102, Level 15, State 1, Line 2 Incorrect syntax near '.'.

查看:90
本文介绍了SQL 2008 Msg 102,级别15,状态1,行2中的Sql脚本错误“。”附近的语法不正确。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。



当我想运行脚本时,我的SQL管理器出现以下错误。



消息102,等级15,状态1,行2

'。'附近的语法不正确。



以下是脚本。



使用eqcas

SELECT cat_validation.name,cat_validation.description,cas_user_ext.email cat_validation.primarypin FROM eqcas.dbo.cas_user_ext cas_user_ext ,eqcas.dbo.cat_validation cat_validation WHERE cat_validation.id = cas_user_ext.x_id AND((cat_validation.expiration is Null))Go



可能是什么问题?

Hi there.

I get the following error on my SQL manager when I want to run a script.

Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '.'.

Below is the Script.

use eqcas
SELECT cat_validation.name, cat_validation.description, cas_user_ext.email cat_validation.primarypin FROM eqcas.dbo.cas_user_ext cas_user_ext, eqcas.dbo.cat_validation cat_validation WHERE cat_validation.id = cas_user_ext.x_id AND ((cat_validation.expiration Is Null)) Go

What could be the problem?

推荐答案

你错过了一个逗号:

You missed a comma:
SELECT cat_validation.name, cat_validation.description, cas_user_ext.email cat_validation.primarypin FROM 

成为

Becomes

SELECT cat_validation.name, cat_validation.description, cas_user_ext.email, cat_validation.primarypin FROM 


这篇关于SQL 2008 Msg 102,级别15,状态1,行2中的Sql脚本错误“。”附近的语法不正确。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆