'2020/06/06'에 해당되는 글 3건

  1. 2020.06.06 php class 기본형
  2. 2020.06.06 mysql procedure 기본형
  3. 2020.06.06 mysql create 기본형

// 기본 클래스 형태.

class Account
{

    var $lv;
    var $name;

    // 생성자.
    public __construct( $lv, $name )
    {

        $this->lv = $lv;
        $this->name = $name;

    }

    // 레벨업.
    public lv_up()
    {

        $this->lv++;

    }

}

'프로그램 > 코드 기본형' 카테고리의 다른 글

mysql procedure 기본형  (0) 2020.06.06
mysql create 기본형  (0) 2020.06.06
Posted by 창업닉군
,

drop procedure if exists d_delete_filelist;
DELIMITER //

create procedure d_delete_filelist(
    IN __idx varchar(256)
)

begin

    declare result_input_check varchar(1024);

    -- 여기서 입력값에 대한 검사를 한다.
    call util_field_check ( 'delete_filelist', 'idx', __idx, result_input_check, 1 );

    -- 마지막으로 오류가 없다면 데이터를 삭제하고 정상 결과를 반환합니다.
    if( result_input_check is null ) then

        delete from delete_filelist where idx = __idx;
        call util_result( 0, "지정한 삭제 대상 정보를 삭제하였습니다.", "" );

    end if;

end

//
DELIMITER ;

'프로그램 > 코드 기본형' 카테고리의 다른 글

php class 기본형  (0) 2020.06.06
mysql create 기본형  (0) 2020.06.06
Posted by 창업닉군
,

create table if not exists character
(
    `idx` bigint(16) PRIMARY KEY AUTO_INCREMENT ,
    `group` varchar(64) not null,
    `key` varchar(64) not null,
    `name` varchar(64) not null comment "해당 캐릭터의 이름",
    `skill` varchar(64) not null commnet "해당 캐릭터가 가진 스킬",

    unique key ( `group`, `key` )
);

'프로그램 > 코드 기본형' 카테고리의 다른 글

php class 기본형  (0) 2020.06.06
mysql procedure 기본형  (0) 2020.06.06
Posted by 창업닉군
,