Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
Description
ThecreateView() function creates a view in MindsDB.
Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
createView() function creates a view in MindsDB.
const viewSelect = `SELECT t.sqft, t.location, m.rental_price
FROM mysql_demo_db.home_rentals as t
JOIN mindsdb.home_rentals_model as m`;
const predictionsView = await MindsDB.Views.createView(
'view_name',
'project_name',
viewSelect);
Was this page helpful?