I want to a store a long string (specifically a SQL query) into a variable, which I'd like to have written on more row for a better readability.
I'm using Jupyter notebook on Python 3.5 (Anaconda) if that's important.
I've tried:
# SQL query
query = "
SELECT
Sued
,ApplicationNumber_Primary
--,ApprovedLoanAmount, ApprovedLoanDuration, ApprovedMonthlyPayment,
,RequiredLoanDuration, RequiredMonthlyPaymentAmount, RequiredPaidAmount, RequiredCoefficientK1
,ClientFreeSources, ClientTotalIncome, ClientNetIncome, ClientTotalExpenditures
,ClientAgeToApplicationDate, ClientFamilyStatusID, ClientEmploymentDuration, CreditExposure
,CalendarQuarter, MonthOfYear, WeekOfYear, DayOfMonth, DayOfWeek, RegionID, DistrictID, ZIPcodeID
FROM
dbo.vRisk
GO
"
...which does not store the string into the variable, as I'd like.
Help would be appreciated.