Software

1.文字列を時間の日付型に変換する
SELECT
TO_DATE(‘20190627230010’, ‘YYYY/MM/DD HH24:MI:SS’)
FROM ...

Software

書式
NVL2( 文字列 , 変換文字列1, 変換文字列2 )

例1 文字列’TODO’をNVL2関数で実行
SELECT
  NVL2( ‘TODO’ ...

Software

書式
INSERT INTO {table_name}
(
{column1},{column2},{column3}
) VALUES(
value1,value2,value3
); ...

Software

オプション
-mtime
概要
ファイルのデータが最後に修正された日時(日指定)


10日前まで
# find ./-mtime -10

10日前
# find ...

Software

サンプルコード

package com.cft;

import java.util.Arrays;

public class SortDemo {

public static void ...

Software

システムの日付
SELECT SYSDATE FROM DUAL;
2019/06/20 13:47:04

年の取得
SELECT TO_CHAR(SYSDATE,’YYYY’ ...

Software

1.現在日に6月足すパターン
①システム日付
SELECT SYSDATE FROM DUAL;
2019/06/20 9:46:44

②6ヶ月足す
SELECT ADD_MONTHS(SY ...

Software

1.ユーザ情報をセッションに登録
getSession().setAttribute(USER_SESSION.USER_BASIC_INFO, xxxx);

2.ユーザ情報をセッションから取得
UserB ...

Software

サンプルコード
package com.cft;

import java.sql.Timestamp;
import java.util.concurrent.ArrayBlockingQueue;

Software

サンプルコード
package com.arkgame.cft;

public class DateuuTest {

public static void main(String[] args) {

Software

サンプルコード
package com.cft;
public class Splittest {

public static void main(String arrA = cftA.split(R ...

Software

サンプルコード

package com.arkgame.cft;

public class Splittest {

public static void main(String cs = cft.s ...

Software

書き方
for var=exp1,exp2,exp3 do
<some code>
end

サンプルコード

#!/usr/local/bin/lua function f(x) p ...

Software

サンプルコード

 

a=10while( a < 15 )do print("a の値:", a) a = a+1end

実行結果
a の値:10
a の値:11
a の値:12 ...

Software

サンプルコードprint(type(true))print(type(false))print(type(nil)) if false or nil then print("at least true")else print("false ...

Python

1.removeメソッドで要素を削除
cftLst =
cftLst.remove(5)
print(cftLst)

実行結果

2.appendメソッドで要素を追加
c

Python

サンプルコード

#!/usr/bin/python3 list = cftLst = print (list) print (list) print (list) print (list) print (cftLst * 2) ...

C++

サンプルコード

#include <iostream>using namespace std; #include <iomanip>using std::setw; int main (){ int n; ...