프로그래밍/c# 썸네일형 리스트형 C# oracle procedure 연동 C#에서 DB Procedure를 호출하여 결과값을 받는 것을 구현 해 보았다. 123456789101112131415161718192021222324252627 OracleConnection conn = new OracleConnection(oradb); OracleCommand cmd = conn.CreateCommand(); // CommandType을 Procedure 사용 cmd.CommandType = CommandType.StoredProcedure; // Procedure 명 cmd.CommandText = "INSERT_TEST"; cmd.Parameters.Add("output_data", OracleDbType.RefCursor).Direction = ParameterDirection.. 더보기 수업2일차 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace suup{ class Car { int engine; public int Engine { get { return engine; } set { engine = value; } } int displacement; public int Displacement { get; set;} String color; public void d.. 더보기 예외처리 123456789101112131415161718192021222324252627282930using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace suup{ class Program { static void Main(string[] args) { int b; try { b = Convert.ToInt32(Console.ReadLine()); } catch(System.FormatException e) { Console.WriteLine("숫자가 아닌 문자 입력"+e.ToString()); } catch(Exception e) { Console... 더보기 이전 1 다음