This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin | |
class ExampleCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
self.view.insert(edit, 0, "Hello, World!") |
NewerOlder