I'm not really a C programmer but I know enough to be dangerous. How can I assign the file created date via GetFileTime to szOptionalField1? Thanks!
struct _FILETIME ft;SYSTEMTIME stUTC, stLocal;
GetFileTime(szCsvFile,&ft,NULL,NULL);
FileTimeToSystemTime(&ft, &stUTC)...
I was able to solve my problem using a single INSERT SELECT. My problem was that I needed to cross join the other table and provide the correct WHERE conditions. I found a good tutorial that helped me with MySQL.
http://www.keithjbrown.co.uk/vworks/mysql/mysql_p5.shtml
This is my working...
Unfortunately REPLACE INTO overwrites the other two existing fields. To clearify there are four fields in the table. Two are getting populated by a previous INSERT INTO. So I need to UPDATE the remaining two somehow. This is the dilemma.
Thanks.
I need to UPDATE exisiting rows and populate
the fields using only the resources in this INSERT statement.
INSERT INTO cms.project_event (projectPhaseID,sortOrder) SELECT
cms.projectTemplate_eventTemplate.projectTemplatePhaseID,
cms.projectTemplate_eventTemplate.sortOrder
FROM...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.