如何使用SQlite从其中Login = Mike的表客户端中删除值'For you'(message_to)?
#include <stdio.h>
#include <stdlib.h>
typedef struct ll {
int val;
struct ll *next;
} ll_t;
void copylist(ll_t* list, int* array, int length) {
int i;
for (i = 0; i < length; i++) {
array[i] = list->val;
list = list->next;
}
}
int main() {
ll_t *list = NULL;
int *array = NULL;
list = malloc(sizeof (ll_t));
list->val = 1;
list->next = NULL;
ll_t *add1 = NULL;
add1 = malloc(sizeof (ll_t));
add1->val = 2;
add1->next = NULL;
list->next = add1;
int j;
copylist(list, array, 2);
for (j = 0; j < 2; j++) {
printf("the content of array is: %d\n", array[j]);
}
return 1;
}
答案 0 :(得分:0)
update clients
set message_to=null
where login='Mike'