DDL Database생성 및 새계정으로 권한 주기
디비생성 create database 디비명; 권한주기 grant select,insert,update,delete,create,drop,ALTER on 디비명.* to '생성아이디'@'localhost' identified by '생성패스워드'; 한번에 다 create database dev11db; grant select,insert,update,delete,create,drop,ALTER on dev11db.* to 'dev11id'@'localhost' identified by 'dev11pw';
2014. 10. 11.
주민번호 확인 프로그램
#include int main(void){ int i=0;int j=0;int fin=0;int s=1;int sum=0;int cunt=0;int k=0;int ma=0;char joomin[15];char joomin2[15];char joomin3[15]={'2','3','4','5','6','7','8','9','2','3','4','5','6'}; printf("주민번호 머냐?");gets(joomin);for(i=0;s;i++){int r=joomin[i]-'0';int t=joomin3[i]-'0';if(joomin[i+1]==NULL){s=0;break;}printf("\n주민번는 : %d %d", r, t); sum+= r*t;cunt++;printf("\n sum값은%d" ,sum);..
2014. 10. 2.