This topic lists some samples of operations that can be executed on tables.
Using the following code, a table can be created on Windows Azure production table storage.
Example 891. Creating a table
<?php
$storageClient = new Zend_Service_WindowsAzure_Storage_Table(
'table.core.windows.net', 'myaccount', 'myauthkey'
);
$result = $storageClient->createTable('testtable');
echo 'New table name is: ' . $result->Name;
Using the following code, a list of all tables in Windows Azure production table storage can be queried.
Example 892. Listing all tables
<?php
$storageClient = new Zend_Service_WindowsAzure_Storage_Table(
'table.core.windows.net', 'myaccount', 'myauthkey'
);
$result = $storageClient->listTables();
foreach ($result as $table) {
echo 'Table name is: ' . $table->Name . "\r\n";
}




