Table fields contain "#" sign, please help!

xinxin2 2003-04-17 01:36:25
I am using WSAD5.0, and some database tables' fields contain "#" at the end. When I using these tables from WSAD, I got an error message "The column name, XXX#, is not a valid identifier".
I am not able to change the column name, does anyone know how to solve this problem?

Thanks you all so much!
...全文
47 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xinxin2 2003-04-19
  • 打赏
  • 举报
回复
Hi,

I created a view for the table which contains pound sign (#) column, but I do not know how to generate entity bean for that view, does anyone know how to do it?

Thanks
super_jack 2003-04-17
  • 打赏
  • 举报
回复
try:
select XXX# as column_alias_name1,YYY# as column_alias_name2,.... from ...where ...

then get the value use the alias:
resultset.getString(column_alias_name1),....
xinxin2 2003-04-17
  • 打赏
  • 举报
回复
Hi, thanks for replying.

I use these tables to generate Entity Beans in WSAD5.0, after I created entity
beans (CMP), tried to deploy them, they will give me an error message said
"Column name XXX# is not a valid identifier". Do you think this can be solved without changing the database table names?

Thanks a lot!

2,633

社区成员

发帖
与我相关
我的任务
社区描述
WebSphere 是 IBM 的软件平台。它包含了编写、运行和监视全天候的工业强度的随需应变 Web 应用程序和跨平台、跨产品解决方案所需要的整个中间件基础设施,如服务器、服务和工具。
社区管理员
  • WebSphere社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧