database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Devel 23679 게시물 읽기
 News | Q&A | Columns | Tutorials | Devel | Files | Links
No. 23679
MySQL UDF -- square()
작성자
정재익(advance)
작성일
2004-02-24 14:36
조회수
57,629
첨부파일
파일이름크기Info 
int_example.cc1.75 KB  

정수 다루는 방법에 대한 예제. square (제곱)를 구하는 함수

 

   Copyright ?1998 by Nem W Schlecht
   This file is public domain and comes with NO WARRANTY of any kind

MySQL SQL code for creating/deleting this function in the 'mysql' database:

CREATE FUNCTION square RETURNS INTEGER SONAME "int_example.so";
DROP FUNCTION square;

Compile line:

CC -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/local/mysql\""
-DDATADIR="\"/local/mysql/var\"" -DSHAREDIR="\"/local/mysql/share/mysql\""
-DHAVE_CONFIG_H -DUSE_ALARM_THREAD -O3 -DDBUG_OFF
-I/local/mysql/include/mysql -I/local/src/SQL/mysql-3.22.4-beta/include
-I/local/src/SQL/mysql-3.22.4-beta -shared -o int_example.so int_example.cc

 

[Top]
No.
제목
작성자
작성일
조회
23680MySQL UDF -- Unix user information
정재익
2004-02-24
57929
23679MySQL UDF -- square()
정재익
2004-02-24
57629
23678MySQL UDF -- soundex
정재익
2004-02-24
56196
23677MySQL UDF -- ip lookup
정재익
2004-02-24
56475
23676MySQL UDF -- unprefix
정재익
2004-02-24
55955
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.048초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다