首页 \ 问答 \ 'where子句'中的未知列'p.id'(Unknown column 'p.id' in 'where clause')

'where子句'中的未知列'p.id'(Unknown column 'p.id' in 'where clause')

当我执行我的请求时:

UPDATE vm s , (SELECT MAX(id) FROM vm) as p 
SET s.title = 'TEST' 
WHERE s.id = p.id; 

我有这个错误错误:

Unknown column 'p.id' in 'where clause'
  com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'p.id' in 'where clause'

我不明白


When i execute My request:

UPDATE vm s , (SELECT MAX(id) FROM vm) as p 
SET s.title = 'TEST' 
WHERE s.id = p.id; 

I have this error Error:

Unknown column 'p.id' in 'where clause'
  com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'p.id' in 'where clause'

I don't understand


原文:https://stackoverflow.com/questions/47635779
更新时间:2023-08-11 08:08

最满意答案

第一个例外是端口绑定问题。 这意味着已经有一些东西在运行(可能是另一个GlassFish实例)。

你遇到的第二个问题不是GlassFish本身的问题,但几乎可以肯定的是.gfclient一个问题,你会发现它存储在用户的主目录中(在Mac上,我相信这就像/ Users / yourName /.gfclient)

尝试完全删除.gfclient,以删除任何缓存的用户/密码凭据。 您可能还需要删除GlassFish服务器并将其重新添加到Netbeans。


The first exception is a port binding issue. It means that there is already something running (probably another GlassFish instance).

The second issue you're having isn't a problem with GlassFish per se, but almost certainly a problem with the .gfclient which you'll find stored in your user's home directory (on Mac, I believe that's something like /Users/yourName/.gfclient)

Try removing .gfclient totally, so any cached user/password credentials are removed. You may also need to remove and re-add the GlassFish server to Netbeans.

相关问答

更多
  • 在浏览器中打开glassfish管理控制台( http:// localhost:4848 ) 单击配置 - >服务器配置 - > JVM设置 。 将调试选项设置为: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009 确保调试已被选中。 点击保存 。 重新启动服务器。 再次尝试您的调试。 出于某种原因,它没有自我检查。 Open up the glassfish admin console in your browser ( ...
  • 我遇到了同样的问题,因为我正在学习java web编程,但在windows环境中。 我花了很多时间猜测这个错误可能意味着什么,因为日志文件没有明确说明。 最后我发现glassfish v3试图在8080端口上运行,该端口已经被reportingservicesservice.exe占用,这是sql server service。 我不知道如何切换glassfish使用的端口,但我发现在工具 - >服务器的netbeans 6.8(我使用)中我可以添加一个新的glassfish服务器实例,该实例在不同的自由端 ...
  • 您的domain.xml文件未使用UTF-8编码(也许您使用记事本或其他东西手动编辑它?)。 解决方案:使用适当的工具将domain.xml文件转换为UTF-8编码。 参考: Code Ranch Post 。 由于您使用的是Windows,因此可以使用UTFCast 。 干杯, Your domain.xml file is not using UTF-8 encoding (maybe you edited it manually with notepad or something?). Solutio ...
  • 该消息由GlassFish的更新工具生成: http://blogs.oracle.com/alexismp/entry/let_glassfish_update_itself_v3 The message is generated by the update Tool of GlassFish: http://blogs.oracle.com/alexismp/entry/let_glassfish_update_itself_v3
  • 经过3天的搜索,我终于找到了解决方案...... 出于某种原因,我不得不在我的电脑上安装Git。 很奇怪,因为它没有任何问题没有安装git工作。 I've finally found a solution after 3 days of searching.... For some reason, i had to install Git on my PC. Weird, because it used to work without any problems without git installed.
  • 实际上我在Windows上面临同样的问题,它解决了从Prgramfile文件夹中删除我的glassfishe并从http://download.oracle.com/glassfish/4.0/promoted/glassfish-4.0-b87.zip下载新版本并解压缩你想要的但不是在programfile中,因为它需要管理员滚动,然后创建新的服务器。 Actually I faced the same problem on windows, and it resolved be delete my gl ...
  • 第一个例外是端口绑定问题。 这意味着已经有一些东西在运行(可能是另一个GlassFish实例)。 你遇到的第二个问题不是GlassFish本身的问题,但几乎可以肯定的是.gfclient一个问题,你会发现它存储在用户的主目录中(在Mac上,我相信这就像/ Users / yourName /.gfclient) 尝试完全删除.gfclient,以删除任何缓存的用户/密码凭据。 您可能还需要删除GlassFish服务器并将其重新添加到Netbeans。 The first exception is a por ...
  • 看起来连接正在超时或关闭,但无法判断是否是因为数据库配置设置,网络防火墙或服务器连接池设置。 http://docs.oracle.com/cd/E26576_01/doc.312/e24936/tuning-glassfish.htm#abehq提供了有关调整glassfish服务器中连接池设置的信息。 具体而言,您可能希望尝试更改“空闲超时”值,以便关闭池中的连接,然后重新获取。 这将阻止db / network对它们进行计时,并让它们继续位于服务器池中,尽管它不可用。 如果此问题仅针对mysql,则需 ...
  • 首先,你的日志输出是什么? 将安全日志级别更改为最佳并共享输出。 现在快速思考: 您不能在jdbcRealm中为Glassfish设置规范化表。 你必须有一个表全部 "username" "pasword" "role" 或两张桌子 "username" "password" 和 "username" "role" 两个表中的“用户名”列名和内容必须相等 您是以普通/文本或MD5或SHA-1 SHA-2存储密码吗? 记得指定正确的密码哈希方法。 如您所见,默认值为SHA-256 总而言之,对于正确的数 ...
  • 该错误意味着您的网址不正确。 那就是那个例外通常意味着什么。 "mysql:jdbc://127.0.0.1:3036/shedule" 应该是这样的: "jdbc:mysql://127.0.0.1:3306/shedule" “jdbc”和“mysql”是向后的。 而且,如前所述,默认端口不正确。 你必须扭转你试图解决的所有疯狂的东西。 您应该在一个位置安装MySQL连接器JAR,如果它是共享的应用程序服务器的/ lib目录,或者是应用程序的WEB-INF / lib。 无处。 That err ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。