Does DolphinDB support the following script?
update tmp set exchangecd='XSHG' if exchangecd='SH' set exchangecd='XSHE' if exchangecd='sz'
Does DolphinDB support the following script?
update tmp set exchangecd='XSHG' if exchangecd='SH' set exchangecd='XSHE' if exchangecd='sz'
DolphinDB does not support the
IF
statement, but you can use theCASE
statement withWHEN...THEN...
, as shown in the following script: