1. 新增 insert into
insert into departments(id, name, t_id, t_name) values (007, Ken, 100, King);
2. 修改 update
update employees set id=008 where t_name=100;
insert into departments(id, name, t_id, t_name) values (007, Ken, 100, King);
update employees set id=008 where t_name=100;
#include#include int main(){ int a[5] = P{1, 2, 3, 4, 5}; int i, n; printf("sizeof(a)%d\n",sizeof(a)); printf("sizeof(a[0])%d\n",sizeof(a[0]));
#include#include int main(){ int *p; p = (int*)malloc(sizeof(int)); *p = 10;
#include#include //傳址,希望函數幫我改值的狀況就用傳址! int dayBetweenByAddress(int *in, int *out){ int temp; if(in >out){ temp = *in; *in = *out; *out = temp; } return *out-*in; }
#include#include #define pi 3.1415926
#include#include //Topic : 自訂函數 function //printf(), scanf() :內建函數,等待呼叫 //if, for, while :敘述 statement