首页 > 编程知识 正文

sql注入修复方法,mysql导出视图创建语句

时间:2023-05-06 00:30:02 阅读:171551 作者:2231

iamusingtheopensourcecmspimcore (http://www.PIM core.org ),which runs on a MySQL backend。

itusesfairlycomplicatedviewstorepresentobjectsandoneofthemhasbecomebrokenatsomestagewhenacolumninanothertablebeingreferencedb y eritrytointeractwithetableviasqlcommandsireceivetheerror 3360

view ' bar riste _ website.object _6' referencesinvalidtable (s ) or

column(s ) or function(s ) s ) or definer/invokerofviewlackrightstouse

蒂姆

iwouldliketosimplyupdatetheviewtoreferencetherenamedcolumns,butineedtoknowthecurrentstructureoftheviewbeforeistartpokingaroungaroulttttpoungroungaroum

but I receive the same error。

Thanks for your help in advance!

解决方案

select view _ definitionfrominformation _ schema.views

where table _ schema=' test ' andtable _ name=' v ';

use数据库名称

GO

EXEC sp_helptext viewName

or also a query like this:

选择table _ name as viewname,

view _ definitionasymdl/pfrominformation _ schema.views

whereyoucouldaddawheretoonlyretrieveoneview

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。