Skip to Content
Google Cloud Platform for Architects
book

Google Cloud Platform for Architects

by Vitthal Srinivasan, Loonycorn Ravi, Judy Raj
June 2018
Intermediate to advanced
372 pages
8h 44m
English
Packt Publishing
Content preview from Google Cloud Platform for Architects

Interleaving tables in Cloud Spanner

Interleaving means creating a parent child relationship between two tables. This is done by sharing primary and/or secondary keys. The child table inherits parent's keys:

  1. To do so, while creating another table, select the Interleave in another table option. This option will be available if you have created at least one table in the same database before. You also need to specify which table you want as the Parent table. Here, you can select to delete child rows with the same primary key as the parent's row. The table_2 is about whether all of the accounts have credit cards allotted to them or not, so the fields in the credit card column are Boolean.
  1. Once you have created the table and added data in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Cloud Platform Professional Cloud Architect

Google Cloud Platform Professional Cloud Architect

Victor Dantas
Google Cloud Platform for Developers

Google Cloud Platform for Developers

Ted Hunter, Steven Porter

Publisher Resources

ISBN: 9781788834308Other