Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert 1234567890 Arabic numerals into 1234567890 in oracle database is best to have source code. Thank you.
How to convert 1234567890 Arabic numerals into 1234567890 in oracle database is best to have source code. Thank you.
Import java.util.scanner;

Public class number ChangeHan {

/**

* @param args

*/

Public static void main(String[] args) {

while(true){

System.out.println ("Please enter 1 digit:");

Scanner s = new scanner (system. in);

int I = s . nextint();

Switch (i) (

Case1:system. out.println ("one"); Break;

Case 2: system. out.println ("two"); Break;

Case 3: System.out.println ("three"); Break;

Case 4: System.out.println ("four"); Break;

Case 5: system. out.println ("five"); Break;

Case 6: system. out.println ("six"); Break;

Case 7: system. out.println ("seven"); Break;

Case 8: System.out.println ("8"); Break;

Case 9: system. out.println ("nine"); Break;

Case 0: system. out.println ("zero"); Break;

Default value:

Break;

}

}

}

}

You can write a method, read the string and convert it into the corresponding uppercase form when encountering an integer, pack it and insert it into the database, and the type of the database field will be changed to VARCHAR.