본문 바로가기

: IT

(44)
[Mysql] where절에서 AND 와 OR UPDATE [TABLE명] SET [COLUMN명] = VALUE WHERE 조건문1 AND 조건문2 OR 조건문3 : 조건문1과조건문2를 만족하거나, 조건문3을 만족할 경우, 해당 값을 업데이트한다. UPDATE sgcp.OrderItemSync ois, sgcp.OrderItem oiSET ois.compared = 'C' , ois.updatedQuantity = oi.quantity WHERE modified != trueAND ( ois.orderItemId = oi.orderItemId AND ois.modified = false AND ois.name = oi.name AND ois.sku = oi.sku AND ois.quantity != oi.quantity ) OR ( ois.orde..
[MySQL] IFNULL , select문에서 null값 치환 ifnull ( 값1, 값2) select ifnull ( price, 0 ) from books: price 값이 Null 이면 0을, Null 이 아니면 price 값을 출력
[SQL 에러] 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 error:org.apache.ibatis.exceptions.PersistenceException:### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 '.value, weightUnit weight.units, quantity, updatedQuantity, unitPrice,' at line 2### The error may involve defau..
트리거 Trigger 데이터베이스 트리거(Database Trigger)는 테이블에 대한 이벤트에 반응해 자동으로 실행되는 작업을 의미한다. 트리거는 데이터 조작 언어(DML)의 데이터 상태의 관리를 자동화하는 데 사용된다. 트리거를 사용하여 데이터 작업 제한, 작업 기록, 변경 작업 감사 등을 할 수 있다. Quartz Trigger 종류 1) SimpleTrigger2) CronTriggerField NameMandatoryAllowed ValuesAllowed Special CharactersSecondsYES0-59, - * /MinutesYES0-59, - * /HoursYES0-23, - * /Day of monthYES1-31, - * ? / L W MonthYES1-12 or JAN-DEC, - * /Day o..