'DB/mysql'에 해당되는 글 2건

  1. 2022.04.15 mysql date타입 변경 date_format
  2. 2022.04.15 mysql 테이블수 칼럼수 확인 information_schema

오라클95% mysql5% 사용하는 사람인데, mysql자료 뽑아야했음...

to_date가 안먹혀서 date_format사용!

to_date(칼럼,'YYYYHHDDMMSS') as 일, 

date_format(칼럼, '20%y-%m-%d %T') as 일자

'DB > mysql' 카테고리의 다른 글

mysql 테이블수 칼럼수 확인 information_schema  (0) 2022.04.15
Posted by 718m2

--테이블수 
select count(*) from information_schema.tables
where table_schema ='디비명';

select * from information_schema.tables
where table_schema ='디비명';


--칼럼수 
select count(*) from information_schema.columns
where table_schema ='디비명';

select * from information_schema.columns
where table_schema ='디비명';

'DB > mysql' 카테고리의 다른 글

mysql date타입 변경 date_format  (0) 2022.04.15
Posted by 718m2
이전버튼 1 이전버튼

블로그 이미지
컴퓨터회사 잡부의 삶 나는 무엇인가 나는 누구인가
718m2

공지사항

Yesterday
Today
Total

달력

 « |  » 2025.5
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

최근에 올라온 글

최근에 달린 댓글

글 보관함