Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- pm2 시작
- invalid data
- pm2 상태 확인
- AntDesign
- DataGridView 직접 입력
- allow_anonymouse
- setInterval 중지
- c# datagridview 데이터 넣기
- mySQL_Replication
- setInterval 정지
- pm2 확인
- setInterval 외부 정지
- 맥 어드레스
- 서버동기화
- listener 1883
- mosquitto
- Replication
- transfer
- DatePicker
- mosquitto.conf
- 데이터테이블 데이터 넣기
- 1883
- pm2
- timepicker
- html #select #option #multiple
- map이 undefined가 뜰 때
- datagridview 직접입력
- 공인IP
- setInterval clear
- pm2 설치
Archives
- Today
- Total
개발 노트
null값을 not null로 not null을 null로 바꾸기 본문
if (dataGridView2.Rows[0].Cells[2].Value.ToString().Trim() != dataGridView2.Rows[0].Cells[9].Value.ToString().Trim())
{
if(dataGridView2.Rows[0].Cells[2].Value.ToString().Trim() == "NO")
{
string alterTable = "ALTER TABLE " + tbl + " MODIFY `" + dataGridView2.Rows[0].Cells[7].Value.ToString() + "` " + dataGridView2.Rows[0].Cells[1].Value.ToString() not null;
Create(alterTable);
}
else if(dataGridView2.Rows[0].Cells[2].Value.ToString().Trim() == "YES")
{
string alterTable = "ALTER TABLE " + tbl + " MODIFY `" + dataGridView2.Rows[0].Cells[7].Value.ToString() + "` " + dataGridView2.Rows[0].Cells[1].Value.ToString();
Create(alterTable);
}
}
https://gocoder.tistory.com/2376
'프로그래밍 > C#' 카테고리의 다른 글
alter utf8, 자동증가 (0) | 2022.03.30 |
---|---|
MYSQL 커멘트변경 CHANGE (0) | 2022.03.29 |
SQL 기본값이 다를경우 (0) | 2022.03.29 |
SQL 필드 확인후 필드가 없을경우 (0) | 2022.03.29 |
바이너리파일저장 (0) | 2022.03.29 |