일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- GIT
- import
- plugin
- resource
- vscode
- maVen
- context
- web.xml
- 단축키
- IntelliJ
- port
- xargs
- Source
- grep
- Eclipse
- ssh
- netsh
- Quartz
- Windows 10
- lsof
- Mac
- profile
- 줄바꿈 문자
- 네트워크
- JavaScript
- find
- Windows
- VirtualBox
- bash
- tomcat
- Today
- Total
목록DB/MySQL (35)
develog
SHOW CREATE PROCEDURE MY_PROC_NAME;
http://dev.mysql.com/doc/refman/5.7/en/information-schema.html information_schema.ENGINESinformation_schema.CHARACTER_SETSinformation_schema.EVENTSinformation_schema.GLOBAL_STATUSinformation_schema.GLOBAL_VARIABLESinformation_schema.PARAMETERSinformation_schema.TABLESPACESinformation_schema.TRIGGERSinformation_schema.USER_PRIVILEGES information_schema.TABLESinformation_schema.TABLE_CONSTRAINTSin..
생성 DELIMITER $$ DROP PROCEDURE IF EXISTS PR_TEST$$ CREATE PROCEDURE PR_TEST(STR VARCHAR(10)) BEGIN SELECT 1; END $$ DELIMITER ;
생성 DELIMITER $$ DROP FUNCTION IF EXISTS FN_TEST$$ CREATE FUNCTION FN_TEST(STR VARCHAR(10)) RETURNS VARCHAR(20) BEGIN DECLARE STR2 VARCHAR(10); SET STR2 = '123'; RETURN CONCAT(STR, STR2); END $$ DELIMITER ; 사용 SELECT FN_TEST('ABC');
SELECT VERSION();