使用Alter命令的Oracle存储过程(Oracle Stored Procedure with Alter command)
我正在尝试构建一个Oracle存储过程,它将接受一个表名作为参数。 该过程然后将重建表上的所有索引。
我的问题是我从存储过程中使用ALTER命令时出现错误,就像PLSQL不允许该命令一样。
I am trying to build an Oracle stored procedure which will accept a table name as a parameter. The procedure will then rebuild all indexes on the table.
My problem is I get an error while using the ALTER command from a stored procedure, as if PLSQL does not allow that command.
原文:https://stackoverflow.com/questions/2502302
更新时间:2022-12-01 08:12
最满意答案
你可以像这样附加事件...
private void CreatePanel() } var panel = new FlowState(); panel.MouseDown += new MouseEventHandler(MouseDown); } private void MouseDown(object sender, MouseEventArgs e) { }
you can attach the event like this...
private void CreatePanel() } var panel = new FlowState(); panel.MouseDown += new MouseEventHandler(MouseDown); } private void MouseDown(object sender, MouseEventArgs e) { }
相关问答
更多-
如何在运行时使用c#在wpf中通过鼠标事件移动动态标签?(how to move a dynamic label at run time by mouse events in wpf using c#?)[2019-11-26]
假设您的标签位于画布上: public MainWindow() { InitializeComponent(); this.label.MouseLeftButtonDown += control_MouseLeftButtonDown; this.label.MouseMove += control_MouseMove; this.label.MouseLeftButtonUp += control_MouseLeftBut ... -
您可以使用MakeGenericType使用值运行时类型实例化通用接口定义,并使用IsAssignableFrom检查兼容性。 public bool IsComparableWithProperty(string propertyName, object value) { return typeof(IComparable<>).MakeGenericType(value.GetType()).IsAssignableFrom(typeof(MyType).GetProperty(property ...
-
如何移动TrackBar以响应C#中的鼠标事件?(How can I move the TrackBar in response to mouse events in C#?)[2023-01-20]
您需要在MouseMove事件以及MouseDown事件中执行代码。 按住其中一个按钮移动鼠标时会发生此事件。 相反,每次按下鼠标按钮时,您当前处理的MouseDown事件只会被提升一次。 这就是当用户移动鼠标时TrackBar没有移动的原因,但是第一次按下按钮时TrackBar工作正常。 您没有显示连接事件处理程序和/或调用MoveTrackBarToMouseClickLocation函数的代码,因此这是我可以获得的具体内容。 但是如果你设法连接了MouseDown事件,这应该是一个简单的修复。 You ... -
您不需要DrawRect来捕获鼠标事件。 你需要构造函数: public MouseTracking(NSCoder coder) :base(coder) { } public MouseTracking(RectangleF frameRect) :base(frameRect) { } 您可能还需要(可能您还不知道)覆盖此标志: public override bool AcceptsFirstMouse (N ...
-
为什么不直接测试IsMouseOver或IsMouseDirectlyOver属性? Why don't you just test the IsMouseOver or IsMouseDirectlyOver properties ?
-
在C#中通过运行时创建的对象最大限度地减少RAM的使用(Minimizing usage of RAM by created objects in runtime in C#)[2024-03-05]
在进行任何性能调整之前,我强烈建议运行内存分析器(例如JetBrains dotMemory,但还有其他),并找出问题的实际来源。 如果没有探查者提供的信息,你的优化就像将你的手指伸入天空并喊出“彩虹”! 即最好无用,最坏的情况是有害的。 此外,在确定探查器问题之后,但在开始更改代码之前,我建议阅读关于垃圾收集如何在.Net中工作的内容。 以下是一些参考资料,帮助您开始: MSDN垃圾收集 MSDN垃圾收集器基础知识和性能提示 .Net垃圾收集深入 这里有一些链接来回答你的问题: 一次性与垃圾收集器 静态与 ... -
你可以像这样附加事件... private void CreatePanel() } var panel = new FlowState(); panel.MouseDown += new MouseEventHandler(MouseDown); } private void MouseDown(object sender, MouseEventArgs e) { } you can attach the event like this... private void CreateP ...
-
您可以有一个列表,允许您通过索引访问其元素,或者具有允许您与任何特定类型相同的dictonary: List
yourList = new List (); YourClass instance = new YourClass(); yourList.Add(instance); YourClass instance2 = yourList[0]; 例如,如果您希望字典中包含字符串键(“name”): Dictonary di ... -
处理在运行时创建的OLEObject CommandButtons的事件(Handling Events for OLEObject CommandButtons created at Runtime)[2023-08-30]
我有一个相当不切实际的解决方案:-) 。 要测试它,请将以下代码放在Sheet1类模块中 。 对于每个新的Sheet1按钮,将添加处理的新事件。 此事件处理程序将执行公共事件处理程序 ,并将单击的命令按钮的名称传递给它。 ' Standard Module Sub test() ' adds three buttons to Sheet1 with click-event handlers Sheet1.AddButton ActiveCell.Offset(5, 0).Activate S ... -
如何将鼠标事件传递给我在C#/ Vista中的应用程序?(How to pass mouse events to applications behind mine in C#/Vista?)[2024-01-26]
听起来你想做一些过滤用户输入的事情。 也许你只需要一个键盘/鼠标钩。 您可能想看看Windows API调用SetWindowsHookEx。 应该有足够的样本如何在C#中做到这一点,我发现的第一件事是这个链接 (也许不是最好的文章,但应该给你的想法)。 After looking at System hooks and other low level solutions I found a much simpler method. First, set the TransparencyKey and Ba ...