首页 \ 问答 \ 使用MySQL执行存储注释(Storing comments with MySQL execution)

使用MySQL执行存储注释(Storing comments with MySQL execution)

我已经找到了这个答案,但还没有找到答案。 我觉得这很简单。 我们的系统上有几个用户(通过编程方法)使用相同的用户ID来运行MySQL命令。 我的任务是在运行这些命令时存储用户环境变量。

我想我的问题是:可以发送评论和MySQL查询吗? 我知道你可以存储关于表格和那些东西的评论。 这里的目标是能够从日志中查看任何给定的查询,并查看从查询/选择/等等发送的评论中执行它的人。(当然最好的想法是不要使用相同的dang用户为MySQL但不幸的是我不能改变它)。

雪莉


I have searched for the answer to this one and haven't found it. I think it's simple. We have several users on our system that are (via programmatic methodology) using the same user id to run MySQL commands. I have been tasked with storing the user environment variable when these commands are ran.

I guess my question is this: can one send comments along with a MySQL query ? I am aware that you can store comments about tables and that sort of stuff. The goal here is to be able to look at any given query from the log and see who executed it from the comments being sent along with the query/select/etc etc. (Of course the best idea would be to not use the same dang user for MySQL but unfortunately I can't change that).

Shelly


原文:https://stackoverflow.com/questions/3980534
更新时间:2022-08-14 22:08

最满意答案

不,你不能这样做,因为HTML不是XML(除非它是doctype xhtml)。

让我用一个简单的例子来解释:

<html>
    <body>
        <p>Para1
        <br>
        <p>Para2</p>
    </body>
</html>

这是一个有效的HTML片段,但不是一个格式良好的XML。 并且您无法使用XSL转换无效的XML。

如果您可以设法转换(invallid)HTML tp有效xhtm,在通过XSLT进行转换之前,它可能会起作用。 您可以使用jtidy尝试这个,但我没有jtidy的经验,


No, you can't do this, because HTML is no XML (unless it is of doctype xhtml).

Let me explain with a simple example:

<html>
    <body>
        <p>Para1
        <br>
        <p>Para2</p>
    </body>
</html>

This is a valid HTML-fragment, but not a wellformed XML. And you cannot transform invalid XML with XSL.

If you can manage to transform the (invallid) HTML tp valid xhtm, before you transform it via XSLT, it may work. You can try this by using jtidy, but I have no experience with jtidy,

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。