밑의 쿼리 실행 하면 에러가 납니다
update emp_mst set password = 1111, emp_name = '김군' in_date = '2001-04-02'
where emp_code='aaaa';
날짜 부분 빼고 실행하면 정상 실행 되고요..
update emp_mst set password = 1111, emp_name = '김군' where emp_code='aaaa';
또한 insert도 날짜 포함해서 잘 들어가지는데..
insert into emp_mst(emp_code,password,emp_name,in_date)
values('aaaa',1111,'김김군','2001-01-01');
대체 왜 업데이트만 날짜가 들어가면 수정이 안되면서 밑의 에러가 뜨는지 모르겠습니다..
-----------------------------------------------------------------------------
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in_date = '2001-04-02' where emp_code='aaaa'' at line 1
(0 ms taken)
-----------------------------------------------------------------------------
고수분들의 고견 부탁드립니다.. 꾸벅 |