Jump to content
php.lv forumi

function output

Recommended Posts

Saīsināt nevajag. Daudz pareizāk ir pateikt kuras kolonas tieši tev ir nepieciešamas, jo, ja tu izmanto asterisku (*), tu pieprasi visus datus. Lasi: datus, kas tev arī nav vajadzīgi...






Un par WHERE un JOIN'u... tā gan nav problēma...


SELECT `tabula1`.`kolona1`, `tabula1`.`kolona2`, `tabula2`.`kolona3`
FROM `tabula1`
JOIN `tabula2`
ON `tabula2`.`kolona3` = `tabula1`.`kolona2`
WHERE `tabula1`.`kolona1` = 'Hello, world!'

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...