小编Pha*_*inh的帖子

无法绑定多部分标识符

我在SO上看到过类似的错误,但我找不到解决问题的方法.我有一个SQL查询,如:

SELECT DISTINCT
        a.maxa ,
        b.mahuyen ,
        a.tenxa ,
        b.tenhuyen ,
        ISNULL(dkcd.tong, 0) AS tongdkcd
FROM    phuongxa a ,
        quanhuyen b
        LEFT OUTER JOIN ( SELECT    maxa ,
                                    COUNT(*) AS tong
                          FROM      khaosat
                          WHERE     CONVERT(DATETIME, ngaylap, 103) BETWEEN 'Sep 1 2011'
                                                              AND
                                                              'Sep 5 2011'
                          GROUP BY  maxa
                        ) AS dkcd ON dkcd.maxa = a.maxa
WHERE   a.maxa <> '99'
        AND LEFT(a.maxa, 2) = b.mahuyen
ORDER BY maxa;
Run Code Online (Sandbox Code Playgroud)

当我执行此查询时,错误结果为: 无法绑定多部分标识符"a.maxa".为什么?
P/s:如果我将查询分成2个单独的查询,它运行正常.

SELECT DISTINCT
        a.maxa ,
        b.mahuyen ,
        a.tenxa ,
        b.tenhuyen …
Run Code Online (Sandbox Code Playgroud)

sql sql-server sql-server-2005

186
推荐指数
6
解决办法
73万
查看次数

无法解析远程名称:'www.google.com' using Recaptcha

我将 Recaptcha 用于我的 ASP.NET 站点。开发环境中一切正常,但是当我公开生产时,出现此错误:

The remote name could not be resolved: 'www.google.com'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote name could not be resolved: 'www.google.com'

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can …
Run Code Online (Sandbox Code Playgroud)

c# asp.net captcha recaptcha

1
推荐指数
1
解决办法
2926
查看次数

标签 统计

asp.net ×1

c# ×1

captcha ×1

recaptcha ×1

sql ×1

sql-server ×1

sql-server-2005 ×1