Skip to content

Instantly share code, notes, and snippets.

View tearf001's full-sized avatar
🎯
Focusing

Tiffiny Jenis tearf001

🎯
Focusing
View GitHub Profile
@tearf001
tearf001 / sql
Created July 25, 2018 06:56
返回匿名表
CREATE FUNCTION extended_sales(p_itemno int)
RETURNS TABLE(quantity int, total numeric) AS $$
BEGIN
RETURN QUERY SELECT s.quantity, s.quantity * s.price FROM sales AS s
WHERE s.itemno = p_itemno;
END;
$$ LANGUAGE plpgsql;
@tearf001
tearf001 / plg2
Created April 1, 2018 16:40
hello world
import sublime, sublime_plugin
class ExampleCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.insert(edit, 0, "Hello, World!")