摘要:
create trigger TgNameon tbfor updateas if update(recommend)beginupdate tb set commenddate=(getdate()) from tb inner join inserted on tb.vlistid=Inserted.vlistidend关键在于Inserted表触发器语句中使用了两种特殊的表:deleted表和inserted表。Deleted 表用于存储 DELETE 和 UPDATE 语句所影响的行的复本。在执行 DELETE 或 UPDATE 语句时,行从触发器表中删除,并传输到 deleted 表 阅读全文
摘要:
还是基于Gstreamer的,在Linux下的比较简单的媒体播放器,代码如下:main.c/*
*main.c *Simple media player based on Gstreamer and GTK
*/
#include <gst/gst.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include <gst/interfaces/xoverlay.h>
#include <string.h> #include "main.h" static GtkWidg 阅读全文