aguest Posted March 4, 2016 Posted March 4, 2016 Hi, I'm loading some data into filemaker and the date field is coming is as text (23 November 2015). During my import routine to move it from a temp table to the correct table I want to convert it to a proper date. I've used the following code but I'm getting a syntax error in my conversion. I know this is correct syntax for SQL so why doesn't Filemaker recognise it? Any help is greatly appreciated. TIA ExecuteSQL ( " SELECT LegalForname, LegalSurname, MiddleName , PreferredForename, PreferredSurname, UPN , ULN, convert(datetime,convert(varchar(30),DateofBirth),103) as DOB, Gender, House, RegistrationDate , YearTaughtIn, SIMSAdmissionNo, YearGroup, Ethnicity, Nationality , HomeLanguage, FirstLanguage, EligibleforFSM, FSMStartDate , FSMEndate, LEACare, PPIndicator, EnrolmentStatus, SENStatus , SENStartDate, QuickNote, RegGroup FROM Loading_StudentDetails"; "|"; "¶" )
Kris M Posted March 4, 2016 Posted March 4, 2016 (edited) The convert function is not be supported by FM SQL. FM SQL is a subset of standard SQL. Google FileMaker 14 SQL Reference Edited March 4, 2016 by Kris M
aguest Posted March 4, 2016 Author Posted March 4, 2016 (edited) Thank you Kris Edited March 4, 2016 by aguest
Recommended Posts
This topic is 3185 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now