Jump to content

fast create index


chico1st

Recommended Posts

acutally this is in C so here is my code:

 

for (i=1; i<= 128000; i++){
	strcpy(query, "INSERT INTO StartData (INDEX1) VALUES (");
	ltoa (i,query2,10);
	strcat(query, query2);
	strcat(query, ")");
	if (mysql_query(conn, query)) {
		fprintf(stderr, "%s\n", mysql_error(conn));
		exit(0);
	}
}

Link to comment
https://forums.phpfreaks.com/topic/65755-fast-create-index/#findComment-328480
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.